se.chalmers.dat255.risk.model
public interface ICard
Modifier and Type | Interface and Description |
---|---|
static class |
ICard.CardType
An enum describing the different card types in the game
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Method for accessing the name(id) of the province belonging to a card.
|
ICard.CardType |
getType()
Method for accessing the type of a card.
|
boolean |
isActive()
Checks if the card is active
|
void |
setActive(boolean active)
Changes the state of the card
|
java.lang.String getName()
ICard.CardType getType()
void setActive(boolean active)
active
- if the card should be active or notboolean isActive()