|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.freecol.client.control.PreGameController
public final class PreGameController
The controller that will be used before the game starts.
Constructor Summary | |
---|---|
PreGameController(FreeColClient freeColClient)
The constructor to use. |
Method Summary | |
---|---|
void |
chat(java.lang.String message)
Sends a chat message. |
MapGeneratorOptions |
getMapGeneratorOptions()
Gets the MapGeneratorOptions used when creating
a map. |
void |
requestLaunch()
Requests the game to be started. |
void |
sendGameOptions()
Sends the GameOptions to the server. |
void |
sendMapGeneratorOptions()
Sends the MapGeneratorOptions to the server. |
void |
setAvailable(Nation nation,
NationOptions.NationState state)
|
void |
setColor(java.awt.Color color)
Sets this client's player's color. |
void |
setNation(Nation nation)
Sets this client's player's nation. |
void |
setNationType(NationType nationType)
Sets this client's player's nation type. |
void |
setReady(boolean ready)
Sets this client to be (or not be) ready to start the game. |
void |
startGame()
Starts the game. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreGameController(FreeColClient freeColClient)
freeColClient
- The main controller.Method Detail |
---|
public MapGeneratorOptions getMapGeneratorOptions()
MapGeneratorOptions
used when creating
a map.
MapGeneratorOptions
.public void setReady(boolean ready)
ready
- Indicates wether or not this client is ready
to start the game.public void setNation(Nation nation)
nation
- Which nation this player wishes to set.public void setNationType(NationType nationType)
nationType
- Which nation this player wishes to set.public void setColor(java.awt.Color color)
color
- Which color this player wishes to set.public void setAvailable(Nation nation, NationOptions.NationState state)
public void requestLaunch()
public void chat(java.lang.String message)
message
- The text of the message.public void sendGameOptions()
GameOptions
to the server.
This method should be called after updating that object.
public void sendMapGeneratorOptions()
MapGeneratorOptions
to the server.
This method should be called after updating that object.
public void startGame()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |