energyTycoon.powerStation
Class PowerStationType
java.lang.Object
energyTycoon.powerStation.PowerStationType
public class PowerStationType
- extends java.lang.Object
Constructor Summary |
PowerStationType(int id,
PowerStationGroup powerStationGroup,
int generation,
int price,
int constructionTime,
int pollutionRate,
int lifeTime,
int basicProduction,
int renovationPrice,
int basicUsePrice)
Constructor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PowerStationType
public PowerStationType(int id,
PowerStationGroup powerStationGroup,
int generation,
int price,
int constructionTime,
int pollutionRate,
int lifeTime,
int basicProduction,
int renovationPrice,
int basicUsePrice)
- Constructor
setId
public void setId(int id)
- set the id of this type ( needed outside )
- Parameters:
id
-
getPrice
public int getPrice()
getConstructionTime
public int getConstructionTime()
getPollutionRate
public int getPollutionRate()
getLifeTime
public int getLifeTime()
getBasicProduction
public int getBasicProduction()
getRenovationPrice
public int getRenovationPrice()
getGeneration
public int getGeneration()
getBasicUsePrice
public int getBasicUsePrice()
getId
public int getId()
getGroupId
public int getGroupId()
load
public void load(java.lang.String file)
getNetworkDefinition
public java.lang.String getNetworkDefinition()
- define a power station type on network
- Returns:
getGroup
public PowerStationGroup getGroup()
- Returns: