showing the real story wrt power

This commit is contained in:
Chris Forbes
2009-12-05 22:26:28 +13:00
parent 2de5ec4b3a
commit 8a3bf7d805
2 changed files with 5 additions and 9 deletions

View File

@@ -15,8 +15,8 @@ namespace OpenRa.Game
public int Cash;
public int Ore;
public int DisplayCash;
int powerProvided;
int powerDrained;
public int powerProvided;
public int powerDrained;
public bool IsReady;
@@ -43,11 +43,6 @@ namespace OpenRa.Game
powerDrained -= dPower;
}
public int GetTotalPower()
{
return powerProvided - powerDrained;
}
public float GetSiloFullness()
{
return (float)Ore / GetOreCapacity();