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

@@ -110,6 +110,7 @@
<Compile Include="PathSearch.cs" />
<Compile Include="ProductionItem.cs" />
<Compile Include="Orders\ReplayOrderSource.cs" />
<Compile Include="Shroud.cs" />
<Compile Include="Smudge.cs" />
<Compile Include="Sound.cs" />
<Compile Include="Support\Stopwatch.cs" />

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()

17
OpenRa.Game/Shroud.cs Normal file
View File

@@ -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)
{
}
}
}