public class GameModelCommand extends CookieCommand
Modifier and Type | Field and Description |
---|---|
private ServerGameManager |
sgm |
private int |
version |
gameID, playerID
Constructor and Description |
---|
GameModelCommand(NetworkCookie cookie,
int version)
Gets a game model from the server.
|
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 int version
private ServerGameManager sgm
public GameModelCommand(NetworkCookie cookie, int version)
version
- The version number as had by the client.public boolean Execute()
ICommand
public boolean Unexecute()
ICommand
public java.lang.String GetResponse()
ICommand
public java.lang.String GetHeader()
ICommand