se.chalmers.dat255.risk.model
public interface IProvince
Modifier and Type | Method and Description |
---|---|
void |
addUnits(int units)
Adds units to this province
|
java.lang.String |
getId()
Fetches the string identification of this province
|
int |
getUnits()
Getter for units in the province
|
boolean |
isActive()
Checks if the province is in an active state.
|
void |
moveUnits(int units,
IProvince province)
Move units forom this province to another province.
|
void |
removeUnits(int units)
Removes units from this province
|
void |
setActive(boolean active)
Sets the state of this province.
|
int getUnits()
void addUnits(int units)
units
- number of units to be addedvoid removeUnits(int units)
units
- number of units to be removedvoid moveUnits(int units, IProvince province)
units
- number of units to be movedprovince
- the province to receive the unitsjava.lang.String getId()
boolean isActive()
void setActive(boolean active)
active
- the new state of the province