Package | Description |
---|---|
client.devcards | |
client.model | |
shared.definitions | |
shared.model |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<DevCardType,javax.swing.JToggleButton> |
DevelopmentCardChooser.devCards |
private java.util.Map<javax.swing.JToggleButton,DevCardType> |
DevelopmentCardChooser.devCardTypes |
Modifier and Type | Method and Description |
---|---|
DevCardType |
DevelopmentCardChooser.getSelectedDevCard() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
DevelopmentCardChooser.add(DevCardType type,
javax.swing.JToggleButton button) |
void |
PlayDevCardView.setCardAmount(DevCardType cardType,
int amount) |
void |
IPlayDevCardView.setCardAmount(DevCardType cardType,
int amount)
Sets the amount for the specified card type.
|
(package private) void |
DevelopmentCardChooser.setCardAmount(DevCardType cardType,
int amount) |
void |
PlayDevCardView.setCardEnabled(DevCardType cardType,
boolean enabled) |
void |
IPlayDevCardView.setCardEnabled(DevCardType cardType,
boolean enabled)
Sets the enable/disable state for the specified card type.
|
(package private) void |
DevelopmentCardChooser.setCardEnabled(DevCardType cardType,
boolean enabled) |
Modifier and Type | Method and Description |
---|---|
int |
ClientGameManager.playerDevCardCount(DevCardType type)
Gets the number of devCards for the current player
|
int |
ClientGameManager.playerNewDevCardCount(DevCardType type) |
Modifier and Type | Method and Description |
---|---|
static DevCardType |
DevCardType.fromInt(int i) |
static DevCardType |
DevCardType.fromString(java.lang.String s) |
static DevCardType |
DevCardType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DevCardType[] |
DevCardType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
DevCardType.toString(DevCardType type) |
Modifier and Type | Method and Description |
---|---|
DevCardType |
GameManager.BuyDevCard(int playerIndex)
Attempts to buy a dev card
|
DevCardType |
Bank.getDevCard()
This gets a dev card which by default are shuffled when given.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GameManager.CanPlayDevCard(int playerIndex,
DevCardType type)
Determines whenter player can play card
|
void |
Bank.getDevCard(DevCardType type)
Gets a dev card of the specific type (taking it from the bank)
|
int |
Bank.getDevCardCount(DevCardType type)
Gets the number of dev cards of a type held
|
int |
Bank.getNewDevCardCount(DevCardType type) |
void |
Bank.giveDevCard(DevCardType type)
Gives the bank one dev card- it will be shuffled into pile
|
private void |
Bank.giveDevCard(DevCardType type,
int amount) |
void |
Bank.giveNewDevCard(DevCardType type) |
void |
GameManager.playDevCard(int playerIndex,
DevCardType type)
Plays a dev card
|
int |
GameManager.playerDevCardCount(int playerIndex,
DevCardType type)
Gets the number of devCards for the current player
|
void |
VictoryPointManager.playerGotDevCard(int playerIndex,
DevCardType card)
The player bought a dev card to give them the parts
|
private boolean |
GameManager.PlayerHasADevCard(int playerIndex,
DevCardType type)
Checks if a player has at least one dev card of the type
|