initial shroud support
This commit is contained in:
@@ -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" />
|
||||
|
||||
@@ -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
17
OpenRa.Game/Shroud.cs
Normal 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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user