public class MovesSendChatCommand extends MovesCommand
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
message |
private ServerGameManager |
sgm |
playerIndex
gameID, 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()
ICommand
public boolean Unexecute()
ICommand
public java.lang.String GetResponse()
ICommand
public java.lang.String GetHeader()
ICommand