public class MovesSoldierCommand extends MovesCommand
Modifier and Type | Field and Description |
---|---|
private Coordinate |
point |
(package private) ServerGameManager |
sgm |
private int |
victimIndex |
playerIndex
gameID, playerID
Constructor and Description |
---|
MovesSoldierCommand(NetworkCookie cookie,
int playerIndex,
int victimIndex,
Coordinate point)
Creates a command object to place a soldier card.
|
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 victimIndex
private Coordinate point
ServerGameManager sgm
public MovesSoldierCommand(NetworkCookie cookie, int playerIndex, int victimIndex, Coordinate point)
playerID
- The player ID.playerIndex
- The player index.victimIndex
- The victim index.point
- The coordinate to place the robber at.public boolean Execute()
ICommand
public boolean Unexecute()
ICommand
public java.lang.String GetResponse()
ICommand
public java.lang.String GetHeader()
ICommand