|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectenergyTycoon.customer.Customer
energyTycoon.customer.City
public class City
Constructor Summary | |
---|---|
City(int id,
Game game,
java.lang.String name,
int settingPrice,
int developmentRate,
double pop,
int eco,
int prosp)
|
Method Summary | |
---|---|
void |
compute(int time)
Correspond to the method which compute all information each frame |
int |
computeEnergyNeed()
Compute the total of city energy needed to make it works |
void |
computeFractionEnergy()
Compute the fraction of energy that each supplier will have to provide according the satisfaction |
double |
computeLightEnergy()
Compute The LightEnergy Needed by the population |
void |
computeNewPopulation()
|
void |
computeNewSettingPrice()
Compute the evolution of the setting price according the number of supplier |
double |
computeOtherEnergy()
Compute The otherEnergy (like production of warm, washingmachine...) |
void |
computeSatisfaction(int time)
Compute the satisfaction of the supplier according various details |
City |
getCity()
|
java.lang.String |
getDefineMessage()
Define the customer in a network string |
double |
getDevelopmentRate()
|
int |
getEcology()
|
int |
getPopulation()
|
int |
getProsperity()
|
int |
getSettingPrice()
|
boolean |
isCity()
|
void |
setEcology(int eco)
|
void |
setPanel(CityPanel p)
|
void |
setPopulation(double pop)
Set the value of population |
void |
setProperity(int prosp)
|
void |
update(double population,
int ecology,
int prosperity,
int developmentRate,
int settingPrice)
|
Methods inherited from class energyTycoon.customer.Customer |
---|
addProvider, getId, getIndustry, getName, isIndustry, setName, setSettingPrice |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public City(int id, Game game, java.lang.String name, int settingPrice, int developmentRate, double pop, int eco, int prosp)
id
- game
- name
- settingPrice
- developmentRate
- pop
- eco
- prosp
- Method Detail |
---|
public void setPopulation(double pop)
pop
- public void setEcology(int eco)
public void setProperity(int prosp)
public int getPopulation()
public double getDevelopmentRate()
public int getEcology()
public int getProsperity()
public int getSettingPrice()
public void computeNewPopulation()
public void computeNewSettingPrice()
public double computeLightEnergy()
public double computeOtherEnergy()
public int computeEnergyNeed()
public void computeSatisfaction(int time)
time
- public void computeFractionEnergy()
public void compute(int time)
compute
in class Customer
time
- public java.lang.String getDefineMessage()
getDefineMessage
in class Customer
public boolean isCity()
isCity
in class Customer
public City getCity()
getCity
in class Customer
public void update(double population, int ecology, int prosperity, int developmentRate, int settingPrice)
population
- ecology
- prosperity
- developmentRate
- settingPrice
- public void setPanel(CityPanel p)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |