public class GameResetCommand extends CookieCommand
Modifier and Type | Field and Description |
---|---|
private GameModel |
gm |
gameID, playerID
Constructor and Description |
---|
GameResetCommand(NetworkCookie cookie)
Creates a command that allows the game to be reset.
|
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.
|
private GameModel gm
public GameResetCommand(NetworkCookie cookie)
playerID
- The player ID executing the reset.public boolean Execute()
ICommand
public boolean Unexecute()
ICommand
public java.lang.String GetResponse()
ICommand
public java.lang.String GetHeader()
ICommand