Modifier and Type | Field and Description |
---|---|
private GameInfo |
info |
(package private) ServerGameManager |
sgm |
Constructor and Description |
---|
GamesCreateCommand(boolean randomTiles,
boolean randomNumbers,
boolean randomPorts,
java.lang.String name)
Creates a command object to create a game.
|
GamesCreateCommand(ServerGameManager sgm)
Creates a command object to create a game.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Execute()
Executes a command
|
java.lang.String |
GetHeader()
Gets the new server header associated with the request.
|
java.lang.String |
GetResponse()
Gets the response for the server.
|
boolean |
Unexecute()
Unexecutes a command.
|
ServerGameManager sgm
private GameInfo info
public GamesCreateCommand(boolean randomTiles, boolean randomNumbers, boolean randomPorts, java.lang.String name)
randomTiles
- True if tiles should be placed randomly.randomNumbers
- True if numbers should be placed randomly.randomPorts
- True if ports should be placed randomly.name
- The name of the game to be created.public GamesCreateCommand(ServerGameManager sgm)
sgm
- The server game manager to use.public boolean Execute()
ICommand
public boolean Unexecute()
ICommand
public java.lang.String GetResponse()
ICommand
GetResponse
in interface ICommand