|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GameListener
Method Summary | |
---|---|
void |
buildPowerStation(PowerStationGroup psg,
int generation)
build a power station |
void |
changeBudget(int newBudget,
int knowingBudget)
change research budget |
void |
changePriceInCity(int cityId,
int price)
the player change his price |
java.util.List<PowerStationType> |
getAllAvailablePowerStationType(int groupId)
|
java.util.Vector<Customer> |
getAllCustomers()
get all customers |
java.util.List<PowerStationGroup> |
getAllGroupsAvailable()
get all groups that player can build |
java.util.List<PowerStation> |
getAllStations()
get all player stations |
ClientGame |
getGame()
get the game |
PhysicPlayer |
getPlayer()
get the user player |
void |
quitGame()
exit game |
void |
sendChatMessage(java.lang.String message)
Send a chat message to other players |
void |
setInCity(int cityId,
int price)
the player want to set in a city |
Method Detail |
---|
void quitGame()
void sendChatMessage(java.lang.String message)
message
- message the user sendjava.util.List<PowerStation> getAllStations()
java.util.List<PowerStationType> getAllAvailablePowerStationType(int groupId)
java.util.List<PowerStationGroup> getAllGroupsAvailable()
java.util.Vector<Customer> getAllCustomers()
void buildPowerStation(PowerStationGroup psg, int generation)
psg
- groupgeneration
- power generationClientGame getGame()
void setInCity(int cityId, int price)
cityId
- the city Id where we want to setprice
- energy price for this cityvoid changePriceInCity(int cityId, int price)
cityId
- the city Id where we want to change priceprice
- energy price for this cityvoid changeBudget(int newBudget, int knowingBudget)
newBudget
- knowingBudget
- PhysicPlayer getPlayer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |