initial shroud support

This commit is contained in:
Chris Forbes
2010-01-05 16:05:20 +13:00
parent 512e56aec7
commit 27b2d20cab
3 changed files with 25 additions and 9 deletions

View File

@@ -17,15 +17,17 @@ namespace OpenRa.Game
public string InternalName;
public Race Race;
public readonly int Index;
public int Cash;
public int Ore;
public int Cash = 10000;
public int Ore = 0;
public int OreCapacity;
public int DisplayCash;
public int PowerProvided;
public int PowerDrained;
public int DisplayCash = 0;
public int PowerProvided = 0;
public int PowerDrained = 0;
public bool IsReady;
public Shroud Shroud = new Shroud();
public Player( Actor playerActor, int index, PaletteType palette, string playerName, Race race, string internalName )
{
this.PlayerActor = playerActor;
@@ -34,10 +36,6 @@ namespace OpenRa.Game
this.InternalName = internalName;
this.PlayerName = playerName;
this.Race = race;
this.Cash = 10000;
this.Ore = 0;
this.DisplayCash = 0;
this.PowerProvided = this.PowerDrained = 0;
}
void UpdatePower()