new support power impl

This commit is contained in:
Chris Forbes
2010-01-23 21:07:27 +13:00
parent bbf94fef79
commit d7a2691db3
56 changed files with 409 additions and 489 deletions

View File

@@ -29,7 +29,6 @@ namespace OpenRa
public World World { get { return PlayerActor.World; } }
public Shroud Shroud;
public Dictionary<string, SupportPower> SupportPowers;
public Player( World world, int index, Session.Client client )
{
@@ -41,10 +40,6 @@ namespace OpenRa
this.Palette = client != null ? (PaletteType)client.Palette : (PaletteType)index;
this.PlayerName = client != null ? client.Name : "Player {0}".F(index+1);
this.Race = client != null ? (Race)client.Race : Race.Allies;
SupportPowers = Rules.SupportPowerInfo.ToDictionary(
spi => spi.Key,
spi => new SupportPower(spi.Key, spi.Value, this));
}
void UpdatePower()
@@ -134,9 +129,6 @@ namespace OpenRa
UpdateOreCapacity();
Shroud.Tick( World );
foreach (var sp in SupportPowers.Values)
sp.Tick();
if (this == World.LocalPlayer)
{
var totalMoney = Cash + Ore;