Class LightGameState

java.lang.Object
it.polimi.ingsw.server.model.game_logic.LightGameState

public class LightGameState extends Object
  • Field Details

    • archipelagos

      public final List<LightArchipelago> archipelagos
    • schoolBoards

      public final List<LightSchoolBoard> schoolBoards
    • clouds

      public final List<List<Color>> clouds
    • currentPlayerSchoolBoardId

      public final int currentPlayerSchoolBoardId
    • currentPhase

      public final Phase currentPhase
    • roundOrder

      public final List<Integer> roundOrder
    • motherNaturePosition

      public final int motherNaturePosition
    • usernameToSchoolBoardId

      public Map<String,Integer> usernameToSchoolBoardId
    • schoolBoardIdsToCardPlayedThisRound

      public final Map<Integer,Card> schoolBoardIdsToCardPlayedThisRound
    • availableCharacters

      public final List<LightPlayableCharacter> availableCharacters
    • characterPlayedInCurrentTurn

      public final LightPlayableCharacter characterPlayedInCurrentTurn
  • Constructor Details

  • Method Details

    • addUsernames

      public LightGameState addUsernames(Map<String,Integer> usernameToSchoolBoardId)
      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