public class MovesMonopolyCommand extends MovesCommand
| Modifier and Type | Field and Description |
|---|---|
private GameModel |
gm |
private ResourceType |
resource |
playerIndexgameID, playerID| Constructor and Description |
|---|
MovesMonopolyCommand(NetworkCookie cookie,
int playerIndex,
ResourceType resource)
Creates a command object to play the monopoly 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 ResourceType resource
private GameModel gm
public MovesMonopolyCommand(NetworkCookie cookie, int playerIndex, ResourceType resource)
playerID - The player ID.playerIndex - The player index.resource - The resource type to monopolize.public boolean Execute()
ICommandpublic boolean Unexecute()
ICommandpublic java.lang.String GetResponse()
ICommandpublic java.lang.String GetHeader()
ICommand