Files
OpenRA/OpenRa.Game/Cursor.cs
Chris Forbes c5df73d63a more cursors
2009-10-23 00:11:23 +13:00

28 lines
822 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRa.Game.Graphics;
using System.IO;
namespace OpenRa.Game
{
class Cursor
{
CursorSequence sequence;
Cursor(string cursor)
{
sequence = SequenceProvider.GetCursorSequence(cursor);
}
public Sprite GetSprite(int frame) { return sequence.GetSprite(frame); }
public int2 GetHotspot() { return sequence.Hotspot; }
public static Cursor Default { get { return new Cursor("default"); } }
public static Cursor Move { get { return new Cursor("move"); } }
public static Cursor Select { get { return new Cursor("select"); } }
public static Cursor MoveBlocked { get { return new Cursor("move-blocked"); } }
public static Cursor Attack { get { return new Cursor("attack"); } }
}
}