Package it.polimi.ingsw.eriantys.model
Class BoardStatus
java.lang.Object
it.polimi.ingsw.eriantys.model.BoardStatus
- All Implemented Interfaces:
Serializable
A class which contains the representation of a game and its objects,
used as a payload for the
BoardUpdate message.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA getter for theCharacterCards randomly extracted for theGame.A getter for the total number of coins required to play aCharacterCardof theGame.A getter for the total number of no-entry tiles placed on aCharacterCardof theGameif the card itself involves this additional information and status.A getter for the students placed on aCharacterCardof theGameif the card itself involves this additional information and status.A getter for theIslandGroupidentifiers.A getter for theIslandGroupon which Mother Nature is currently placed.A getter for the total number of coins owned by the users' in theGame.A getter for the references to theSchoolBoarddining room of every user in theGame.A getter for the references to theSchoolBoardentrance of every user in theGame.A getter for the nicknames of the users in theGame.A getter for theTowerColorliterals of the users in theGame.A getter for the total number of towers on the users'SchoolBoard.A getter for the professors owned by the users' in theGame.
-
Constructor Details
-
BoardStatus
-
-
Method Details
-
getPlayers
A getter for the nicknames of the users in theGame.- Returns:
- the nicknames of the users, following the current turn order
-
getPlayerEntrances
A getter for the references to theSchoolBoardentrance of every user in theGame.- Returns:
- the
SchoolBoardentrances within a data structure which maps a nickname to the actual queried representation - See Also:
-
getPlayerDiningRooms
A getter for the references to theSchoolBoarddining room of every user in theGame.- Returns:
- the
SchoolBoarddining rooms within a data structure which maps a nickname to the actual queried representation - See Also:
-
getPlayerTowerColors
A getter for theTowerColorliterals of the users in theGame.- Returns:
- the
TowerColorliterals within a data structure which maps a nickname to the actual queried representation
-
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
A getter for the total number of coins owned by the users' in theGame.- Returns:
- the number of coins within a data structure
which maps a nickname to the actual queried representation,
generating a
nullreference value if the game is not set on expert mode
-
getIslands
A getter for theIslandGroupidentifiers. -
getIslandSizes
- Returns:
- the
IslandGroupsizes within a data structure which maps an island identifier to the actual queried representation
-
getIslandStudents
- Returns:
- the students on an
IslandGroupwithin a data structure which maps an island identifier to the actual queried representation - See Also:
-
getIslandControllers
- Returns:
- the user nickname of the
Playercontrolling theIslandGroupwithin a data structure which maps an island identifier to the actual queried representation
-
getMotherNatureIsland
A getter for theIslandGroupon which Mother Nature is currently placed.- Returns:
- the identifier of the
IslandGroupon which Mother Nature is placed.
-
getIslandNoEntryTiles
- Returns:
- the number of no-entry tiles on an
IslandGroupwithin a data structure which maps an island identifier to the actual queried representation, generating anullreference value if the game is not set on expert mode
-
getCharacterCards
A getter for theCharacterCards randomly extracted for theGame.- Returns:
- the card literals, or
nullif theGameis not set on expert mode
-
getCharacterCardsCost
A getter for the total number of coins required to play aCharacterCardof theGame.- Returns:
- the cost of a
CharacterCardwithin a data structure which maps a card identifier to the actual queried representation, ornullif the game is not set on expert mode
-
getCharacterCardsStudents
A getter for the students placed on aCharacterCardof theGameif the card itself involves this additional information and status.- Returns:
- the students placed on a
CharacterCardwithin a data structure which maps a card identifier to the actual queried representation, ornullif the game is not set on expert mode - See Also:
-
getCharacterCardsNoEntryTiles
A getter for the total number of no-entry tiles placed on aCharacterCardof theGameif the card itself involves this additional information and status.- Returns:
- the number of no-entry tiles on a
CharacterCardwithin a data structure which maps a card identifier to the actual queried representation, ornullif the game is not set on expert mode
-
getCloudTiles
- Returns:
- the students on a cloud tile within a data structure which maps a tile (numerical) identifier to the actual queried representation
-
getProfessors
A getter for the professors owned by the users' in theGame.- Returns:
- the professor literals within a data structure which maps a nickname to the actual queried representation
-