Uses of Class
it.polimi.ingsw.Server.Model.Player
-
Uses of Player in it.polimi.ingsw.Server.Controller
Modifier and TypeFieldDescriptionprivate Player
GameController.activePlayer
Player who is playing his/her turn at this very momentprivate final Player
MoveIntermediate.p
Used for validation checksModifier and TypeMethodDescriptionGameController.getActivePlayer()
Getter method for activePlayerGameController.getPlayerByNickname
(String nickname) getter method for PlayerByNicknameModifierConstructorDescriptionprivate
GameController
(List<String> lobby, String identifier, Game game, Player activePlayer, int maxPlayers, boolean refreshed, Map<ScoreCard, CommonGoalCard> lastTurnScores) Related to Game's refresh strategyMoveIntermediate
(Board b, Shelf s, GameController gc, Player p) Move Intermediate constructor -
Uses of Player in it.polimi.ingsw.Server.Model
Modifier and TypeFieldDescriptionGame.players
Map used to store Players, associated to an Integer key, which indicates their position in the gameModifier and TypeMethodDescriptionGame.getPlayerFromNickname
(String nickname) getter method to recognize a player from nicknameThis method adds a new player to "players" Map.Modifier and TypeMethodDescriptionboolean
Game.checkEndGame
(Player activePlayer) This method checks if the active player has completely filled his/her shelfModifierConstructorDescriptionGame
(String identifier, Map<Integer, Player> players, int maxPlayers, List<PersonalGoalCard> personalCards, Scoreboard scoreboard, Board board, int playerCount, CommonGoalCard cgCard1, CommonGoalCard cgCard2, List<ObjectCard> objectCards, boolean gameEnded, boolean prepared) Related to Game's refresh strategy