public class MovesBuildSettlementCommand extends MovesCommand
Modifier and Type | Field and Description |
---|---|
private boolean |
free |
private Coordinate |
point |
private ServerGameManager |
sgm |
playerIndex
gameID, playerID
Constructor and Description |
---|
MovesBuildSettlementCommand(NetworkCookie cookie,
int playerIndex,
Coordinate point,
boolean free)
Creates a command the builds a settlement.
|
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 Coordinate point
private boolean free
private ServerGameManager sgm
public MovesBuildSettlementCommand(NetworkCookie cookie, int playerIndex, Coordinate point, boolean free)
playerID
- The player ID.playerIndex
- The player index.point
- The point to build the settlement.free
- True if free, else false. (Used during setup).public boolean Execute()
ICommand
public boolean Unexecute()
ICommand
public java.lang.String GetResponse()
ICommand
public java.lang.String GetHeader()
ICommand