|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectenergyTycoon.powerStation.EnergyProviderBuilding
public abstract class EnergyProviderBuilding
Constructor Summary | |
---|---|
EnergyProviderBuilding(ClientGame client,
int stationId,
FullPlayer player,
PowerStationType powerStationType)
EnergyProviderBuilding constructor |
|
EnergyProviderBuilding(ServerGame server,
int stationId,
FullPlayer player,
PowerStationType powerStationType)
EnergyProviderBuilding constructor |
Method Summary | |
---|---|
void |
askRestore()
|
void |
askUpdate(int level)
|
long |
computeMonthlyUsePrice()
compute the monthly use price |
void |
explode(int pollution,
java.lang.String message)
|
int |
getConstructionDate()
Get the construction date |
int |
getGeneration()
get power station generation |
int |
getId()
get the building id |
int |
getLastRenovationDate()
Last upgrade date |
int |
getLife()
get the restant life of the plant : 100 to 0... |
int |
getLifeTime()
get the life time of the building |
abstract int |
getMaintenancePrice()
get maintenance price for the month |
long |
getMonthlyUsePrice()
Get monthly use price |
PowerStationType |
getPowerStationType()
get type of this power station |
int |
getRenovationPrice()
|
void |
restore()
|
void |
setClient(ClientGame client)
set the client |
void |
setPowerStationType(PowerStationType powerStationType)
set the new power station type of the central |
void |
setServer(ServerGame server)
set the server |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EnergyProviderBuilding(ServerGame server, int stationId, FullPlayer player, PowerStationType powerStationType)
server
- player
- powerStationType
- public EnergyProviderBuilding(ClientGame client, int stationId, FullPlayer player, PowerStationType powerStationType)
client
- player
- powerStationType
- Method Detail |
---|
public void setServer(ServerGame server)
server
- public void setClient(ClientGame client)
client
- public int getConstructionDate()
public int getLastRenovationDate()
public void askUpdate(int level)
public void askRestore()
public void restore()
public void explode(int pollution, java.lang.String message)
public long getMonthlyUsePrice()
public int getId()
public int getLifeTime()
public int getGeneration()
public void setPowerStationType(PowerStationType powerStationType)
powerStationType
- public abstract int getMaintenancePrice()
public PowerStationType getPowerStationType()
public long computeMonthlyUsePrice()
public int getRenovationPrice()
public int getLife()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |