|
||||||||||
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
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 |
deletePowerStation(int powerStationId)
delete the power station |
void |
deletePowerStationsInRemoveList()
delete all power stations in delete list |
void |
deleteStation(int powerStationId,
int pollution,
java.lang.String message)
destroy the given central |
void |
eraseBuilding(PowerStation station)
|
void |
explodeStation(int powerStationId,
int pollution,
java.lang.String message)
explode the given central |
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 |
Battery |
getBattery()
return the player battery |
int |
getGroupMaxGenerationAvailable(int powerStationGroupId)
|
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 |
PowerStation |
getPowerStation(int powerStationId)
get the power station of the given id |
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 |
---|
getEcology, getId, getName, setEcology |
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 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 powerStationId, int pollution, java.lang.String message)
powerStationId
- pollution
- message
- public void explodeStation(int powerStationId, int pollution, java.lang.String message)
powerStationId
- pollution
- message
- 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
- public Battery getBattery()
public void deletePowerStation(int powerStationId)
powerStationId
- public void deletePowerStationsInRemoveList()
public PowerStation getPowerStation(int powerStationId)
powerStationId
-
public int getGroupMaxGenerationAvailable(int powerStationGroupId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |