public class MovesRollNumberCommand extends MovesCommand
| Modifier and Type | Field and Description |
|---|---|
private GameModel |
model |
private int |
roll |
playerIndexgameID, playerID| Constructor and Description |
|---|
MovesRollNumberCommand(NetworkCookie cookie,
int playerIndex,
int roll)
Creates a command object to handle dice rolls.
|
| 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 roll
private GameModel model
public MovesRollNumberCommand(NetworkCookie cookie, int playerIndex, int roll)
playerID - The player ID.playerIndex - The player index.roll - The value on the dice.public boolean Execute()
ICommandpublic boolean Unexecute()
ICommandpublic java.lang.String GetResponse()
ICommandpublic java.lang.String GetHeader()
ICommand