| Modifier and Type | Field and Description |
|---|---|
private CatanColor |
color |
private NetworkCookie |
cookie |
private int |
gameID |
| Constructor and Description |
|---|
GamesJoinCommand(NetworkCookie cookie,
int gameID,
CatanColor color)
Creates a command to join a game.
|
| 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 NetworkCookie cookie
private int gameID
private CatanColor color
public GamesJoinCommand(NetworkCookie cookie, int gameID, CatanColor color)
playerID - The id of the joining player.gameId - The ID of the game to join.color - The desired piece color.public boolean Execute()
ICommandpublic boolean Unexecute()
ICommandpublic java.lang.String GetResponse()
ICommandGetResponse in interface ICommand