Class BoardStatus

java.lang.Object
it.polimi.ingsw.eriantys.model.BoardStatus
All Implemented Interfaces:
Serializable

public class BoardStatus extends Object implements Serializable
A class which contains the representation of a game and its objects, used as a payload for the BoardUpdate message.
See Also:
  • Constructor Details

  • Method Details

    • getPlayers

      public List<String> getPlayers()
      A getter for the nicknames of the users in the Game.
      Returns:
      the nicknames of the users, following the current turn order
    • getPlayerEntrances

      public Map<String,Map<String,Integer>> getPlayerEntrances()
      A getter for the references to the SchoolBoard entrance of every user in the Game.
      Returns:
      the SchoolBoard entrances within a data structure which maps a nickname to the actual queried representation
      See Also:
    • getPlayerDiningRooms

      public Map<String,Map<String,Integer>> getPlayerDiningRooms()
      A getter for the references to the SchoolBoard dining room of every user in the Game.
      Returns:
      the SchoolBoard dining rooms within a data structure which maps a nickname to the actual queried representation
      See Also:
    • getPlayerTowerColors

      public Map<String,String> getPlayerTowerColors()
      A getter for the TowerColor literals of the users in the Game.
      Returns:
      the TowerColor literals within a data structure which maps a nickname to the actual queried representation
    • getPlayerTowers

      public Map<String,Integer> getPlayerTowers()
      A getter for the total number of towers on the users' SchoolBoard.
      Returns:
      the number of towers within a data structure which maps a nickname to the actual queried representation
    • getPlayerCoins

      public Map<String,Integer> getPlayerCoins()
      A getter for the total number of coins owned by the users' in the Game.
      Returns:
      the number of coins within a data structure which maps a nickname to the actual queried representation, generating a null reference value if the game is not set on expert mode
    • getIslands

      public List<String> getIslands()
      A getter for the IslandGroup identifiers.
      Returns:
      the identifiers of the islands on the Board of the Game
    • getIslandSizes

      public Map<String,Integer> getIslandSizes()
      A getter for the number of islands composing an aggregate on the Board of the Game.
      Returns:
      the IslandGroup sizes within a data structure which maps an island identifier to the actual queried representation
    • getIslandStudents

      public Map<String,Map<String,Integer>> getIslandStudents()
      A getter for the students placed on an aggregate on the Board of the Game.
      Returns:
      the students on an IslandGroup within a data structure which maps an island identifier to the actual queried representation
      See Also:
    • getIslandControllers

      public Map<String,String> getIslandControllers()
      A getter for the controller, if present, of an aggregate on the Board of the Game.
      Returns:
      the user nickname of the Player controlling the IslandGroup within a data structure which maps an island identifier to the actual queried representation
    • getMotherNatureIsland

      public String getMotherNatureIsland()
      A getter for the IslandGroup on which Mother Nature is currently placed.
      Returns:
      the identifier of the IslandGroup on which Mother Nature is placed.
    • getIslandNoEntryTiles

      public Map<String,Integer> getIslandNoEntryTiles()
      A getter for the total number of no-entry tiles placed on an aggregate on the Board of the Game.
      Returns:
      the number of no-entry tiles on an IslandGroup within a data structure which maps an island identifier to the actual queried representation, generating a null reference value if the game is not set on expert mode
    • getCharacterCards

      public List<String> getCharacterCards()
      A getter for the CharacterCards randomly extracted for the Game.
      Returns:
      the card literals, or null if the Game is not set on expert mode
    • getCharacterCardsCost

      public Map<String,Integer> getCharacterCardsCost()
      A getter for the total number of coins required to play a CharacterCard of the Game.
      Returns:
      the cost of a CharacterCard within a data structure which maps a card identifier to the actual queried representation, or null if the game is not set on expert mode
    • getCharacterCardsStudents

      public Map<String,Map<String,Integer>> getCharacterCardsStudents()
      A getter for the students placed on a CharacterCard of the Game if the card itself involves this additional information and status.
      Returns:
      the students placed on a CharacterCard within a data structure which maps a card identifier to the actual queried representation, or null if the game is not set on expert mode
      See Also:
    • getCharacterCardsNoEntryTiles

      public Map<String,Integer> getCharacterCardsNoEntryTiles()
      A getter for the total number of no-entry tiles placed on a CharacterCard of the Game if the card itself involves this additional information and status.
      Returns:
      the number of no-entry tiles on a CharacterCard within a data structure which maps a card identifier to the actual queried representation, or null if the game is not set on expert mode
    • getCloudTiles

      public Map<String,Map<String,Integer>> getCloudTiles()
      A getter for the students placed on a cloud tile on the Board of the Game.
      Returns:
      the students on a cloud tile within a data structure which maps a tile (numerical) identifier to the actual queried representation
    • getProfessors

      public Map<String,String> getProfessors()
      A getter for the professors owned by the users' in the Game.
      Returns:
      the professor literals within a data structure which maps a nickname to the actual queried representation