diff --git a/OpenRa.Game/OpenRa.Game.csproj b/OpenRa.Game/OpenRa.Game.csproj index 72f4caec37..b3fa1b7e12 100644 --- a/OpenRa.Game/OpenRa.Game.csproj +++ b/OpenRa.Game/OpenRa.Game.csproj @@ -110,6 +110,7 @@ + diff --git a/OpenRa.Game/Player.cs b/OpenRa.Game/Player.cs index 5e40e92b32..90d6a9f57b 100644 --- a/OpenRa.Game/Player.cs +++ b/OpenRa.Game/Player.cs @@ -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() diff --git a/OpenRa.Game/Shroud.cs b/OpenRa.Game/Shroud.cs new file mode 100644 index 0000000000..a194ecdb15 --- /dev/null +++ b/OpenRa.Game/Shroud.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using IjwFramework.Types; + +namespace OpenRa.Game +{ + class Shroud + { + bool[,] explored = new bool[128, 128]; + + public void Explore(Actor a) + { + } + } +}