|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectenergyTycoon.player.Player
energyTycoon.player.FullPlayer
public abstract class FullPlayer
Manage a complete player
Field Summary |
---|
Fields inherited from class energyTycoon.player.Player |
---|
myCustomer, supplyings |
Constructor Summary | |
---|---|
FullPlayer()
pro customer number this frame |
Method Summary | |
---|---|
void |
addPowerStationGeneration(int groupId)
add a power station generation |
void |
addPowerStationGroup(PowerStationGroup psg,
int generation)
add a group to available station for the player |
void |
askChangeClientPrice(Customer cust,
int price)
|
void |
build(PowerStationType building)
|
void |
changeExchangeMinAndMax(int min,
int max)
change minimum and maximum energy stock |
void |
changeMoney()
|
void |
citySetting(City city)
|
abstract void |
delete()
|
void |
deleteStation(int stationId)
destroy the given central |
void |
eraseBuilding(PowerStation station)
|
java.util.List<PowerStationGroup> |
getAllAvailablePowerStationGroup()
get all group available for this player |
java.util.List<PowerStationType> |
getAllAvailablePowerStationType(int groupId)
Get all power station from groupId that the player can build |
int |
getEcology()
|
int |
getMaximumStock()
get maximum stock, sell if we have more |
int |
getMinimumStock()
get minimum stock, buy if less |
int |
getMoney()
|
int |
getNbPowerStationByType(PowerStationType pst)
Get the number of power stations of this type owned by the player |
int |
getResearchKnownEnergyBudget()
get research budget |
int |
getResearchNewEnergyBudget()
get research budget |
int |
getTotalPollution()
|
void |
newMessage(java.lang.String Message)
send information to player |
void |
quitCity(City city)
|
void |
setMaximumStock(int qt)
|
void |
setMinimumStock(int qt)
|
void |
setMoney(int money)
set player money |
void |
setResearchBudget(int newBudget,
int knowingBudget)
change research budget |
Methods inherited from class energyTycoon.player.Player |
---|
getId, getName |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FullPlayer()
Method Detail |
---|
public void build(PowerStationType building)
public int getMoney()
public void changeMoney()
public int getNbPowerStationByType(PowerStationType pst)
pst
-
public void setResearchBudget(int newBudget, int knowingBudget)
newBudget
- knowingBudget
- public void setMoney(int money)
money
- public void eraseBuilding(PowerStation station)
public int getTotalPollution()
public int getEcology()
public void citySetting(City city)
public void quitCity(City city)
public void setMinimumStock(int qt)
public void setMaximumStock(int qt)
public int getResearchNewEnergyBudget()
public int getResearchKnownEnergyBudget()
public void askChangeClientPrice(Customer cust, int price)
public void newMessage(java.lang.String Message)
Message
- the message to sendpublic void deleteStation(int stationId)
stationId
- public abstract void delete()
delete
in class Player
public void addPowerStationGroup(PowerStationGroup psg, int generation)
psg
- the power station groupgeneration
- the maximum power station availablepublic void addPowerStationGeneration(int groupId)
groupId
- public java.util.List<PowerStationType> getAllAvailablePowerStationType(int groupId)
groupId
-
public int getMinimumStock()
public int getMaximumStock()
public java.util.List<PowerStationGroup> getAllAvailablePowerStationGroup()
public void changeExchangeMinAndMax(int min, int max)
min
- max
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |