public class MovesBuildCityCommand extends MovesCommand
Modifier and Type | Field and Description |
---|---|
private Coordinate |
point |
private ServerGameManager |
sgm |
playerIndex
gameID, playerID
Constructor and Description |
---|
MovesBuildCityCommand(NetworkCookie cookie,
int playerIndex,
Coordinate point)
Creates a command that builds a city.
|
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 ServerGameManager sgm
public MovesBuildCityCommand(NetworkCookie cookie, int playerIndex, Coordinate point)
cookie
- The player ID/game IDplayerIndex
- The player index.point
- The point to build the city at.public boolean Execute()
ICommand
public boolean Unexecute()
ICommand
public java.lang.String GetResponse()
ICommand
public java.lang.String GetHeader()
ICommand