sortof works

This commit is contained in:
Chris Forbes
2010-03-29 20:05:54 +13:00
parent 9bdcd17db8
commit 7baaf60eff
4 changed files with 94 additions and 124 deletions

View File

@@ -50,8 +50,7 @@ namespace OpenRA
public int PowerDrained = 0;
public Shroud Shroud;
public World World { get { return PlayerActor.World; } }
public World World { get; private set; }
public static List<Tuple<string, string, Color>> PlayerColors
{
@@ -66,6 +65,7 @@ namespace OpenRA
public Player( World world, Session.Client client )
{
World = world;
Shroud = new Shroud(this, world.Map);
PlayerActor = world.CreateActor("Player", new int2(int.MaxValue, int.MaxValue), this);
@@ -176,7 +176,6 @@ namespace OpenRA
{
UpdatePower();
UpdateOreCapacity();
Shroud.Tick( World );
var totalMoney = Cash + Ore;
var diff = Math.Abs(totalMoney - DisplayCash);