public class GameCommandsCommand extends CookieCommand
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<ICommand> |
commands |
gameID, playerID| Constructor and Description |
|---|
GameCommandsCommand(NetworkCookie cookie,
java.util.List<ICommand> commands)
Creates a command to allow the execution of commands.
|
| 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 java.util.List<ICommand> commands
public GameCommandsCommand(NetworkCookie cookie, java.util.List<ICommand> commands)
playerID - The ID of the player.commands - The command list.public boolean Execute()
ICommandpublic boolean Unexecute()
ICommandpublic java.lang.String GetResponse()
ICommandpublic java.lang.String GetHeader()
ICommand