Package Files
Class BoardManager
java.lang.Object
Files.BoardManager
-
Constructor Summary
ConstructorsConstructorDescriptionBoardManager
(Integer numOfPlayers) Constructs the BoardManager object Instantiates the individual Player objects in players Starts number for players at 0 -
Method Summary
Modifier and TypeMethodDescriptiondetermineTroopAmnt
(Player temp) Determines amount of troops given to player at the start of turn * @param playerObjectstatic Continent
static Continent
getAsia()
static Continent
static Continent
static Continent
static Continent
void
Evenly divides all the territories between the players.
-
Constructor Details
-
BoardManager
Constructs the BoardManager object Instantiates the individual Player objects in players Starts number for players at 0- Parameters:
numOfPlayers
- number of players in the game
-
-
Method Details
-
getNorthAmerica
-
getAsia
-
getEurope
-
getAfrica
-
getSouthAmerica
-
getAustralia
-
initalizeTerritoryOwners
public void initalizeTerritoryOwners()Evenly divides all the territories between the players. If the amount of territories does not evenly divide by the amount of players then the extra territories are added one by one in turn order -
determineTroopAmnt
Determines amount of troops given to player at the start of turn * @param playerObject- Returns:
- Integer amount of troops given at start of turn
-