Package Files

Class BoardManager

java.lang.Object
Files.BoardManager

public class BoardManager extends Object
  • Constructor Details

    • BoardManager

      public BoardManager(Integer numOfPlayers)
      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

      public static Continent getNorthAmerica()
    • getAsia

      public static Continent getAsia()
    • getEurope

      public static Continent getEurope()
    • getAfrica

      public static Continent getAfrica()
    • getSouthAmerica

      public static Continent getSouthAmerica()
    • getAustralia

      public static Continent 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

      public Integer determineTroopAmnt(Player temp)
      Determines amount of troops given to player at the start of turn * @param playerObject
      Returns:
      Integer amount of troops given at start of turn