skip 'make' animation for mapunits

This commit is contained in:
Chris Forbes
2009-11-01 19:09:18 +13:00
parent f9fb04372c
commit 4336c2af35
3 changed files with 16 additions and 8 deletions

View File

@@ -20,16 +20,21 @@ namespace OpenRa.Game
public readonly uint ActorID;
public int2 Location;
public Player Owner;
public int Health;
public Actor( string name, int2 location, Player owner )
public int Health;
public readonly bool IsMapActor;
public Actor(string name, int2 location, Player owner)
: this( name, location, owner, false ) {}
public Actor( string name, int2 location, Player owner, bool isMapActor )
{
ActorID = Game.world.NextAID();
unitInfo = Rules.UnitInfo[ name ];
Location = location;
CenterLocation = new float2( 12, 12 ) + Game.CellSize * (float2)Location;
Owner = owner;
Health = unitInfo.Strength; /* todo: handle cases where this is not true! */
Health = unitInfo.Strength; /* todo: handle cases where this is not true! */
IsMapActor = isMapActor;
if( unitInfo.Traits != null )
{