Class LightGameState
java.lang.Object
it.polimi.ingsw.server.model.game_logic.LightGameState
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<LightArchipelago>final List<LightPlayableCharacter>final LightPlayableCharacterfinal Phasefinal intfinal intfinal List<LightSchoolBoard> -
Constructor Summary
ConstructorsConstructorDescriptionLightGameState(List<LightArchipelago> archipelagos, List<LightSchoolBoard> schoolBoards, List<List<Color>> clouds, int currentPlayerSchoolBoardId, Phase currentPhase, List<Integer> roundOrder, int motherNaturePosition, Map<Integer, Card> schoolBoardIdsToCardPlayedThisRound, List<LightPlayableCharacter> availableCharacters, LightPlayableCharacter characterPlayedInCurrentTurn) -
Method Summary
Modifier and TypeMethodDescriptionaddUsernames(Map<String, Integer> usernameToSchoolBoardId) This method adds the userNames to the LightGameState
-
Field Details
-
archipelagos
-
schoolBoards
-
clouds
-
currentPlayerSchoolBoardId
public final int currentPlayerSchoolBoardId -
currentPhase
-
roundOrder
-
motherNaturePosition
public final int motherNaturePosition -
usernameToSchoolBoardId
-
schoolBoardIdsToCardPlayedThisRound
-
availableCharacters
-
characterPlayedInCurrentTurn
-
-
Constructor Details
-
LightGameState
public LightGameState(List<LightArchipelago> archipelagos, List<LightSchoolBoard> schoolBoards, List<List<Color>> clouds, int currentPlayerSchoolBoardId, Phase currentPhase, List<Integer> roundOrder, int motherNaturePosition, Map<Integer, Card> schoolBoardIdsToCardPlayedThisRound, List<LightPlayableCharacter> availableCharacters, LightPlayableCharacter characterPlayedInCurrentTurn)
-
-
Method Details
-
addUsernames
This method adds the userNames to the LightGameState- Parameters:
usernameToSchoolBoardId- is the map that links every schoolBoard ID to the corresponding userName- Returns:
- a LightGameState with the newly added usernames
-