This commit is contained in:
Chris Forbes
2009-10-21 20:37:38 +13:00
parent cfa56a791d
commit 659c3669e7
2 changed files with 5 additions and 3 deletions

View File

@@ -17,7 +17,8 @@ namespace OpenRa.Game
public readonly UnitInfo unitInfo;
public int2 Location;
public Player Owner;
public Player Owner;
public int Health;
public Actor( string name, int2 location, Player owner )
{
@@ -25,6 +26,7 @@ namespace OpenRa.Game
Location = location;
CenterLocation = new float2( 12, 12 ) + Game.CellSize * (float2)Location;
Owner = owner;
Health = unitInfo.Strength; /* todo: handle cases where this is not true! */
if( unitInfo.Traits != null )
{