public class MovesSendChatCommand extends MovesCommand
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
message |
private ServerGameManager |
sgm |
playerIndexgameID, playerID| Constructor and Description |
|---|
MovesSendChatCommand(NetworkCookie cookie,
int playerIndex,
java.lang.String message)
Creates a command to send a chat.
|
| 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.lang.String message
private ServerGameManager sgm
public MovesSendChatCommand(NetworkCookie cookie, int playerIndex, java.lang.String message)
playerID - The player ID.playerIndex - The player index.message - The message being sent.public boolean Execute()
ICommandpublic boolean Unexecute()
ICommandpublic java.lang.String GetResponse()
ICommandpublic java.lang.String GetHeader()
ICommand