public class GameAddAICommand extends CookieCommand
Modifier and Type | Field and Description |
---|---|
private AIType |
type |
gameID, playerID
Constructor and Description |
---|
GameAddAICommand(NetworkCookie cookie,
AIType type)
Creates a command to add a certain type of AI to the 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.
|
private AIType type
public GameAddAICommand(NetworkCookie cookie, AIType type)
playerID
- The ID of the player.type
- The type of AI to add.public boolean Execute()
ICommand
public boolean Unexecute()
ICommand
public java.lang.String GetResponse()
ICommand
public java.lang.String GetHeader()
ICommand