|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectenergyTycoon.powerStation.EnergyProviderBuilding
energyTycoon.powerStation.PowerStation
public abstract class PowerStation
Constructor Summary | |
---|---|
PowerStation(ClientGame game,
int stationId,
FullPlayer player,
PowerStationType powerStationType)
|
|
PowerStation(ServerGame game,
int stationId,
FullPlayer player,
PowerStationType powerStationType)
|
Method Summary | |
---|---|
void |
askChangeUseRate(int rate)
|
int |
compute(int time)
|
abstract void |
computeMaintenancePrice()
|
abstract void |
computePollution()
|
abstract void |
computeProduction()
|
void |
computeRenovationPrice()
|
int |
getBuildingRate()
get the rate building of the power station |
int |
getLife()
get the restant life of the plant : 100 to 0... |
int |
getMaintenancePrice()
compute maintenance price per frame use useRate, age, ... |
java.lang.String |
getName()
|
int |
getPollution()
|
PowerStationType |
getPowerStationType()
get type of this power station |
int |
getProduction()
|
int |
getRenovationPrice()
|
int |
getUseRate()
|
boolean |
isBuilt()
|
boolean |
isJustBuilt()
|
java.lang.String |
networkCreateDefinition()
get network definition |
void |
setId(int id)
|
void |
setName(java.lang.String name)
|
void |
setPollution(int pollution)
|
void |
setProduction(int prod)
define power station production (used by client) |
void |
setUsePrice(int maintenancePrice)
|
void |
setUseRate(int rate)
|
abstract void |
testDead()
|
Methods inherited from class energyTycoon.powerStation.EnergyProviderBuilding |
---|
askRestore, askUpdate, deleteStation, getConstructionDate, getGeneration, getId, getLastRenovationDate, getLifeTime, restore, setClient, setServer, update |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PowerStation(ServerGame game, int stationId, FullPlayer player, PowerStationType powerStationType)
game
- player
- powerStationType
- public PowerStation(ClientGame game, int stationId, FullPlayer player, PowerStationType powerStationType)
game
- player
- powerStationType
- Method Detail |
---|
public java.lang.String getName()
public int getUseRate()
public int getPollution()
public int getProduction()
public void setProduction(int prod)
prod
- public void setUsePrice(int maintenancePrice)
public void setPollution(int pollution)
public boolean isBuilt()
public int getRenovationPrice()
public int getMaintenancePrice()
getMaintenancePrice
in class EnergyProviderBuilding
public boolean isJustBuilt()
public PowerStationType getPowerStationType()
public java.lang.String networkCreateDefinition()
public int getBuildingRate()
public int getLife()
public void setUseRate(int rate)
public void setName(java.lang.String name)
public void askChangeUseRate(int rate)
rate
- public void setId(int id)
public void computeRenovationPrice()
public abstract void computeMaintenancePrice()
public abstract void computeProduction()
public abstract void computePollution()
public abstract void testDead()
public int compute(int time)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |