public class MovesBuyDevCardCommand extends MovesCommand
| Modifier and Type | Field and Description |
|---|---|
private ServerGameManager |
sgm |
playerIndexgameID, playerID| Constructor and Description |
|---|
MovesBuyDevCardCommand(NetworkCookie cookie,
int playerIndex)
Creates a command object that buys a Dev 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 ServerGameManager sgm
public MovesBuyDevCardCommand(NetworkCookie cookie, int playerIndex)
cookie - The player ID/game IDplayerIndex - The player index.public boolean Execute()
ICommandpublic boolean Unexecute()
ICommandpublic java.lang.String GetResponse()
ICommandpublic java.lang.String GetHeader()
ICommand