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
-
Method Summary
Modifier and TypeMethodDescriptionA getter for theCharacterCard
s randomly extracted for theGame
.A getter for the total number of coins required to play aCharacterCard
of theGame
.A getter for the total number of no-entry tiles placed on aCharacterCard
of theGame
if the card itself involves this additional information and status.A getter for the students placed on aCharacterCard
of theGame
if the card itself involves this additional information and status.A getter for theIslandGroup
identifiers.A getter for theIslandGroup
on 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 theSchoolBoard
dining room of every user in theGame
.A getter for the references to theSchoolBoard
entrance of every user in theGame
.A getter for the nicknames of the users in theGame
.A getter for theTowerColor
literals 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 theSchoolBoard
entrance of every user in theGame
.- Returns:
- the
SchoolBoard
entrances within a data structure which maps a nickname to the actual queried representation - See Also:
-
getPlayerDiningRooms
A getter for the references to theSchoolBoard
dining room of every user in theGame
.- Returns:
- the
SchoolBoard
dining rooms within a data structure which maps a nickname to the actual queried representation - See Also:
-
getPlayerTowerColors
A getter for theTowerColor
literals of the users in theGame
.- Returns:
- the
TowerColor
literals 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
null
reference value if the game is not set on expert mode
-
getIslands
A getter for theIslandGroup
identifiers. -
getIslandSizes
- Returns:
- the
IslandGroup
sizes within a data structure which maps an island identifier to the actual queried representation
-
getIslandStudents
- Returns:
- the students on an
IslandGroup
within a data structure which maps an island identifier to the actual queried representation - See Also:
-
getIslandControllers
- Returns:
- the user nickname of the
Player
controlling theIslandGroup
within a data structure which maps an island identifier to the actual queried representation
-
getMotherNatureIsland
A getter for theIslandGroup
on which Mother Nature is currently placed.- Returns:
- the identifier of the
IslandGroup
on which Mother Nature is placed.
-
getIslandNoEntryTiles
- 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 anull
reference value if the game is not set on expert mode
-
getCharacterCards
A getter for theCharacterCard
s randomly extracted for theGame
.- Returns:
- the card literals, or
null
if theGame
is not set on expert mode
-
getCharacterCardsCost
A getter for the total number of coins required to play aCharacterCard
of theGame
.- Returns:
- the cost of a
CharacterCard
within a data structure which maps a card identifier to the actual queried representation, ornull
if the game is not set on expert mode
-
getCharacterCardsStudents
A getter for the students placed on aCharacterCard
of theGame
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, ornull
if the game is not set on expert mode - See Also:
-
getCharacterCardsNoEntryTiles
A getter for the total number of no-entry tiles placed on aCharacterCard
of theGame
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, ornull
if 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
-