Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
P
- paintComponent(Graphics) - Method in class it.polimi.ingsw.Client.GUI.Panels.StartPanel
- paintComponent(Graphics) - Method in class it.polimi.ingsw.Client.GUI.Panels.UserCredentialsPanel
- Pair<T,
U> - Record Class in it.polimi.ingsw.Misc -
A Pair represents a set of 2 objects linked in some way
- Pair(T, U) - Constructor for record class it.polimi.ingsw.Misc.Pair
-
Creates an instance of a
Pair
record class. - parityWhenSameNumberOfTowersAndTeachers() - Method in class it.polimi.ingsw.Model.ModelTest
- PAWN - Static variable in class it.polimi.ingsw.Misc.Symbols
- PawnColour - Enum Class in it.polimi.ingsw.Model.Enums
-
Represents the colour of many pawns on the game boards, like Students and Teachers.
- PawnColour() - Constructor for enum class it.polimi.ingsw.Model.Enums.PawnColour
- PAWNCOLOUR - Enum constant in enum class it.polimi.ingsw.Model.Enums.StateType
- pawnFromCharacterCard - Variable in class it.polimi.ingsw.Client.GUI.Panels.IslandFieldPanel
-
Pawn from character card that player wants to move inside an island
- PawnNotInEntrance() - Method in class it.polimi.ingsw.Model.Card07Test
- PawnNotPresentInCard() - Method in class it.polimi.ingsw.Model.Card01Test
- PawnNotPresentInCard() - Method in class it.polimi.ingsw.Model.Card07Test
- PawnNotPresentInCard() - Method in class it.polimi.ingsw.Model.Card11Test
- payCharacterEffect(CharacterCard) - Method in class it.polimi.ingsw.Model.PlayerBoard
-
Removes as many coins from the balance as the cost of the paid card.
- PINK - Enum constant in enum class it.polimi.ingsw.Model.Enums.PawnColour
- PINK - Static variable in class it.polimi.ingsw.Misc.Symbols
- PinkStudent - Static variable in class it.polimi.ingsw.Client.GUI.IconLoader
- PinkTeacher - Static variable in class it.polimi.ingsw.Client.GUI.IconLoader
- playAssistantCard() - Method in class it.polimi.ingsw.Client.CLI.CliWriter
-
Executes the playAssistantCard command The method shows the available assistantCard at that moment (removing the used cards and cards picked by other players in the same turn to avoid playing cards with same value).
- PlayAssistantCard - Class in it.polimi.ingsw.Controller.Actions
-
This
PlayerAction
allows the caller to select the desired assistant card to be played this round. - PlayAssistantCard(int, int) - Constructor for class it.polimi.ingsw.Controller.Actions.PlayAssistantCard
-
Create a new instance of this class with the following inputs:
- playAssistantCardOutOfSetupPhase() - Method in class it.polimi.ingsw.Controller.PlayAssistantCardTest
- PlayAssistantCardTest - Class in it.polimi.ingsw.Controller
- PlayAssistantCardTest() - Constructor for class it.polimi.ingsw.Controller.PlayAssistantCardTest
- playCharacterCard() - Method in class it.polimi.ingsw.Client.CLI.CliWriter
-
This method, after checking the gameMode, takes CharacterCard's number and extracts the characteCard; basing on CharacterCard type the methods create dynamically the CharacterCardInput by requesting the user only the right input.
- PlayCharacterCard - Class in it.polimi.ingsw.Controller.Actions
- PlayCharacterCard(int, int, OptionalValue<Integer>, OptionalValue<PawnColour>, OptionalValue<List<Pair<PawnColour, PawnColour>>>) - Constructor for class it.polimi.ingsw.Controller.Actions.PlayCharacterCard
-
Create a new instance of this class with the following inputs:
- PlayCharacterCardEffect(int, int, OptionalValue<ArrayList<PawnColour>>) - Method in class it.polimi.ingsw.Client.GUI.Panels.PlayerBoardPanel
-
Executes characterCards' effects that interact directly with the playerBoard
- PlayCharacterCardTest - Class in it.polimi.ingsw.Controller
- PlayCharacterCardTest() - Constructor for class it.polimi.ingsw.Controller.PlayCharacterCardTest
- player - Variable in class it.polimi.ingsw.Client.GUI.Panels.PlayerBoardPanel
-
Contains player's PlayerBoard information
- playerAction - Variable in class it.polimi.ingsw.Server.Messages.Events.Requests.PlayerActionRequest
- PlayerAction - Class in it.polimi.ingsw.Controller.Actions
-
The
PlayerAction
object is the definition of a user's intention. - PlayerAction(int, boolean) - Constructor for class it.polimi.ingsw.Controller.Actions.PlayerAction
-
Package protected constructor used to initialize the playerBoardID.
- PlayerActionFeedback - Class in it.polimi.ingsw.Server.Messages.ServerResponses
-
A
Response
to represent the output the controller gave on a previousPlayerActionRequest
- PlayerActionFeedback(StatusCode, String) - Constructor for class it.polimi.ingsw.Server.Messages.ServerResponses.PlayerActionFeedback
-
Construct the response
- playerActionRequest - Variable in class it.polimi.ingsw.Client.GUI.Listeners.GUISocketListener
-
Last player's request sent to Server
- PlayerActionRequest - Class in it.polimi.ingsw.Server.Messages.Events.Requests
-
Represents a Client attempting to run a
PlayerAction
on the game - PlayerActionRequest(PlayerAction) - Constructor for class it.polimi.ingsw.Server.Messages.Events.Requests.PlayerActionRequest
-
Construct the request
- playerBoard - Static variable in class it.polimi.ingsw.Client.GUI.IconLoader
- PlayerBoard - Class in it.polimi.ingsw.Model
-
This class represents the Player's part of the board
- PlayerBoard(int, int, String, StudentBag) - Constructor for class it.polimi.ingsw.Model.PlayerBoard
-
Generates a board and initializes its structures
- playerBoardBackground - Static variable in class it.polimi.ingsw.Client.GUI.IconLoader
- playerBoardID - Variable in class it.polimi.ingsw.Controller.Actions.PlayerAction
- PlayerBoardIndexOutOfBoundException() - Method in class it.polimi.ingsw.Controller.PlayAssistantCardTest
- PlayerBoardPanel - Class in it.polimi.ingsw.Client.GUI.Panels
-
Class containing all the elements necessary to graphically represent both the player’s playerBoard and the assistant cards still usable.
- PlayerBoardPanel(PlayerBoard, Model, SocketWrapper, GUISocketListener) - Constructor for class it.polimi.ingsw.Client.GUI.Panels.PlayerBoardPanel
-
Create a new PlayerBoardPanel
- playerBoards - Variable in class it.polimi.ingsw.Model.Model
- PlayerBoardTest - Class in it.polimi.ingsw.Model
- PlayerBoardTest() - Constructor for class it.polimi.ingsw.Model.PlayerBoardTest
- PlayerBoardUI - Class in it.polimi.ingsw.Client.CLI
-
PlayerBoardUI allows to print all the information representing the
PlayerBoard
. - PlayerBoardUI() - Constructor for class it.polimi.ingsw.Client.CLI.PlayerBoardUI
- playerCanTakeStudentsFromCloud() - Method in class it.polimi.ingsw.Controller.ChooseCloudTileTest
- playerCantMoveMoreThanAllowed() - Method in class it.polimi.ingsw.Controller.MoveMotherNatureTest
- playerEventQueues - Variable in class it.polimi.ingsw.Server.Lobby
- players - Variable in class it.polimi.ingsw.Server.Lobby
- players - Variable in class it.polimi.ingsw.Server.Messages.Events.Internal.ConnectEvent
- players - Variable in class it.polimi.ingsw.Server.Messages.ServerResponses.ClientConnected
- players - Variable in class it.polimi.ingsw.Server.Messages.ServerResponses.ClientDisconnected
- players - Variable in class it.polimi.ingsw.Server.Messages.ServerResponses.SupportStructures.LobbyInfo
- playerTeamMap - Variable in class it.polimi.ingsw.Model.TeamMapper
- preferredLayoutSize(Container) - Method in class it.polimi.ingsw.Client.GUI.CircleLayout
-
Returns this CircleLayout's preferred size based on its Container
- prevGroup(IslandGroup) - Method in class it.polimi.ingsw.Model.IslandField
-
searches for the
IslandGroup
adjacent to a selected one - PreviousActionNotValid() - Method in class it.polimi.ingsw.Controller.ChooseCloudTileTest
-
2 ChooseCloudAction actions in a row throw an exception because before a ChooseCloudAction should only be present a PlayCharacterCard action or MoveMotherNature action (due to the check order taken in validate method, the controller does not recognize immediately that this action has already been executed, anyway the result is the same that is to say, the validation fails)
- printActions() - Method in class it.polimi.ingsw.Client.CLI.CliWriter
-
Method responsible for print actions during all the game
- printCharacterCard() - Method in class it.polimi.ingsw.Client.CLI.ClientView
-
Support method responsible for printing the 3 characterCards
- printCharacterCardInfo(CharacterCard) - Method in class it.polimi.ingsw.Client.GUI.Panels.CharacterCardsPanel
-
Support method for printing characterCard's info
- printGameActions() - Method in class it.polimi.ingsw.Client.CLI.CliWriter
-
print all the available actions basing on current game phase
- printGameBoards() - Method in class it.polimi.ingsw.Client.CLI.ClientView
-
Support method responsible for printing all players' PlayerBoards
- printIslandField() - Method in class it.polimi.ingsw.Client.CLI.ClientView
-
Support method responsible for printing all field's components (islands and clouds)
- printView() - Method in class it.polimi.ingsw.Client.CLI.ClientView
-
Prints all gameBoard's element that the user is allowed to see (Islands, clouds, playerBoards and characterCards)
- priority - Variable in class it.polimi.ingsw.Model.AssistantCard
- publicLobbies - Variable in class it.polimi.ingsw.Server.Messages.ServerResponses.LobbyServerAccept
- pushTower(Tower) - Method in class it.polimi.ingsw.Model.TowerStorage
-
Put a
Tower
into storage
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form