Files
OpenRA/OpenRa.Game/PlayerOwned.cs
Bob 75d18cf11e added TurretedUnit
3tnk works; jeep's turret is off-center (and possibly hard-coded?)
2009-10-07 22:35:13 +13:00

25 lines
624 B
C#

using System.Collections.Generic;
using OpenRa.Game.Graphics;
using IjwFramework.Types;
namespace OpenRa.Game
{
abstract class PlayerOwned : Actor
{
public Animation animation;
protected int2 location;
public UnitMission currentOrder = null;
public UnitMission nextOrder = null;
protected PlayerOwned( Game game, string name, int2 location )
: base( game )
{
animation = new Animation( name );
this.location = location;
}
public override IEnumerable<Pair<Sprite, float2>> CurrentImages { get { yield return Pair.New( animation.Image, 24 * (float2)location ); } }
}
}