Index

A B C D E F G H I J K L M N O P Q R S T U V W Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

G

GAME_IN_PROGRESS_PHASE - Enum constant in enum class it.polimi.ingsw.Server.LobbyServer.State
client is now in a game, playing
GAME_START_PHASE - Enum constant in enum class it.polimi.ingsw.Server.LobbyServer.State
client is part of a lobby, waiting for the game to start
gameEnded - Variable in class it.polimi.ingsw.Client.CLI.ClientView
Used to verify whether the Game has ended
GameInit - Class in it.polimi.ingsw.Server.Messages.ServerResponses
GameInit(StatusCode, String) - Constructor for class it.polimi.ingsw.Server.Messages.ServerResponses.GameInit
Construct the response
gameInProgressPanel - Variable in class it.polimi.ingsw.Client.GUI.Listeners.GUISocketListener
JTabbedPane containing all others JPanels
GameInProgressPanel - Class in it.polimi.ingsw.Client.GUI.Panels
Class container of all others Panel inside a JTabbedPane
GameInProgressPanel(Context) - Constructor for class it.polimi.ingsw.Client.GUI.Panels.GameInProgressPanel
Constructor that should be called only upon the creation of first GameInProgressPanel
GameInProgressPanel(Context, GUISocketListener) - Constructor for class it.polimi.ingsw.Client.GUI.Panels.GameInProgressPanel
Should be used upon the second creation of GameInProgressPanel
GameInProgressPanel(Context, Model, GUISocketListener, GameInProgressPanel) - Constructor for class it.polimi.ingsw.Client.GUI.Panels.GameInProgressPanel
Public constructor to create GameInProgressPanel's object starting from the second creation; it should never be called the first time
gameMode - Variable in class it.polimi.ingsw.Model.Model
 
gameMode - Variable in class it.polimi.ingsw.Server.Messages.Events.Requests.StartGameRequest
 
GameMode - Enum Class in it.polimi.ingsw.Model.Enums
Represents the game mode of the game.
GameMode() - Constructor for enum class it.polimi.ingsw.Model.Enums.GameMode
 
GameOver - Class in it.polimi.ingsw.Server.Messages.ServerResponses
This Response is generated when a lobby's game is over and is sent to the lobby's clients.
GameOver(List<String>) - Constructor for class it.polimi.ingsw.Server.Messages.ServerResponses.GameOver
Create the response
GameOverEvent - Record Class in it.polimi.ingsw.Server.Messages.Events.Internal
This Event is generated when a lobby's game is detected to have ended.
GameOverEvent(List<String>) - Constructor for record class it.polimi.ingsw.Server.Messages.Events.Internal.GameOverEvent
Creates an instance of a GameOverEvent record class.
gamePhase - Variable in class it.polimi.ingsw.Model.TurnOrder
 
GamePhase - Enum Class in it.polimi.ingsw.Model.Enums
Represent the Phase of a turn.
GamePhase() - Constructor for enum class it.polimi.ingsw.Model.Enums.GamePhase
 
gameStarted - Variable in class it.polimi.ingsw.Client.CLI.ClientView
Used to verify whether the Game has started
GameStarted - Class in it.polimi.ingsw.Server.Messages.ServerResponses
This Response is generated when a lobby's game is started and is sent to the lobby's clients.
GameStarted() - Constructor for class it.polimi.ingsw.Server.Messages.ServerResponses.GameStarted
 
GameStartEvent - Record Class in it.polimi.ingsw.Server.Messages.Events.Internal
This Event is generated when a lobby's game is started.
GameStartEvent(Map<String, Integer>) - Constructor for record class it.polimi.ingsw.Server.Messages.Events.Internal.GameStartEvent
Creates the event
GameStartingPanel - Class in it.polimi.ingsw.Client.GUI.Panels
Panel that allows lobby's admin to start the game (is also possible to select gameMode) after it has been filled
GameStartingPanel(Context, boolean, UUID) - Constructor for class it.polimi.ingsw.Client.GUI.Panels.GameStartingPanel
Create a new GameStartingPanel
GameUI - Class in it.polimi.ingsw.Client.CLI
GameUI is a graphical representation (as a String data structure) useful to print CloudUI and multiple IslandUI components next to each other on the console.
GameUI() - Constructor for class it.polimi.ingsw.Client.CLI.GameUI
 
gb - Variable in class it.polimi.ingsw.Model.Card03Test
 
gb - Variable in class it.polimi.ingsw.Model.Card05Test
 
gb - Variable in class it.polimi.ingsw.Model.Card06And08Test
 
gb - Variable in class it.polimi.ingsw.Model.Card07Test
 
gb - Variable in class it.polimi.ingsw.Model.Card09Test
 
gb - Variable in class it.polimi.ingsw.Model.Card10Test
 
gb - Variable in class it.polimi.ingsw.Model.Card11Test
 
gb - Variable in class it.polimi.ingsw.Model.Card12Test
 
gb_adv_3 - Variable in class it.polimi.ingsw.Model.ModelTest
 
gb_adv_4 - Variable in class it.polimi.ingsw.Model.ModelTest
 
gb_sim_2 - Variable in class it.polimi.ingsw.Model.ModelTest
 
generateCardSet(Model) - Static method in class it.polimi.ingsw.Model.CharacterDeckGenerator
Generate a random list of 3 Character cards (ensured to be non repeating in the list)
generateCharacterCardInput(PlayerBoard, Model) - Method in class it.polimi.ingsw.Controller.Actions.PlayCharacterCard
a CharacterCard requires more information than the one contained in the constructor of this PlayerAction to be able to function.
generateUUID() - Static method in class it.polimi.ingsw.Server.LobbyServer
generates a unique UUID for a lobby
GenericInputValidationException - Exception Class in it.polimi.ingsw.Exceptions.Input
Signals there was an error while validating part of a contract.
GenericInputValidationException(String, String) - Constructor for exception class it.polimi.ingsw.Exceptions.Input.GenericInputValidationException
Creates an exception reporting a specific error and an identifier for the part of the failed contract
get() - Method in class it.polimi.ingsw.Misc.OptionalValue
Retrieve the inner value
getAction() - Method in class it.polimi.ingsw.Server.Messages.Events.Requests.PlayerActionRequest
Get the user defined action
getAdmin() - Method in class it.polimi.ingsw.Client.CLI.ClientView
Get lobby's admin's nickname
getAdmin() - Method in class it.polimi.ingsw.Server.Lobby
Get the name of the admin
getAdmin() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.LobbyConnected
Get the admin of the lobby
getAdmin() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.SupportStructures.LobbyInfo
Get the admin nickname
getCaller() - Method in class it.polimi.ingsw.Model.CharacterCardInput
 
GetCardsToShow(ArrayList<JButton>, ArrayList<AssistantCard>) - Method in class it.polimi.ingsw.Client.GUI.Panels.PlayerBoardPanel
Support method that, given an ArrayList of assistantCards, returns an arrayList containing the relative buttons (example, given the assistantCard with priority 5, the method returns a JButton with the right assistantCard's image (image with number 5)
getCharacterCardIndex() - Method in class it.polimi.ingsw.Client.CLI.CliWriter
Support method used to acquire chosen characterCard from command line; it requires user to type the characterCard number (not the index inside Game's list of 3 characterCards but the "id" o the card between 1 and 12).
getCharacterCards() - Method in class it.polimi.ingsw.Model.Model
 
getClouds() - Method in class it.polimi.ingsw.Model.Model
 
getCode() - Method in class it.polimi.ingsw.Server.Messages.Events.Requests.ConnectLobbyRequest
Get the code of the lobby
getCoinBalance() - Method in class it.polimi.ingsw.Model.PlayerBoard
Get the current coin balance of the player
getCoinReserve() - Method in class it.polimi.ingsw.Model.Model
 
getColour() - Method in class it.polimi.ingsw.Model.Tower
Get the colour of the tower
getColour() - Method in class it.polimi.ingsw.Model.TowerStorage
Get the colour of the stored Towers
getContents() - Method in class it.polimi.ingsw.Model.Cloud
Cloud contents may be inspected without emptying the tile.
getCost() - Method in class it.polimi.ingsw.Model.CharacterCard
 
getCurrentTurnOrder() - Method in class it.polimi.ingsw.Model.TurnOrder
Get the current pecking order for the turn
getDeniedPawnColour() - Method in class it.polimi.ingsw.Model.EffectTracker
 
getDestinationType() - Method in class it.polimi.ingsw.Controller.MoveDestination
 
getDimBoost(int) - Method in class it.polimi.ingsw.Client.GUI.Panels.IslandFieldPanel
Support method used to increase islands' dimensions when the amount of IslandGroups decreases
getDiningRoom() - Method in class it.polimi.ingsw.Model.PlayerBoard
Get the mappings from PawnColour to number of students of that colour in the Dining room
getDiningRoomCount(PawnColour) - Method in class it.polimi.ingsw.Model.PlayerBoard
Get the amount of students in a lane of the dining room
getEntranceSize() - Method in class it.polimi.ingsw.Model.PlayerBoard
Get the size of the entrance (can change depending on the number of players)
getEntranceSpaceLeft() - Method in class it.polimi.ingsw.Model.PlayerBoard
Get the amount of free slots in the student entrance
getEntranceStudents() - Method in class it.polimi.ingsw.Model.PlayerBoard
Get a list of the active slots usable in the student entrance
getErrorMessage() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.GameInit
Get information about the response
getEventQueue() - Method in class it.polimi.ingsw.Server.LobbyServer
Get the event queue this server listens on
getFrame() - Method in class it.polimi.ingsw.Client.GUI.Window
 
getGameMode() - Method in class it.polimi.ingsw.Model.Model
 
getGameMode() - Method in class it.polimi.ingsw.Server.Messages.Events.Requests.StartGameRequest
Get the selected game mode
getGamePhase() - Method in class it.polimi.ingsw.Model.TurnOrder
Get the phase of the current round
getGameStarted() - Method in class it.polimi.ingsw.Client.CLI.ClientView
Get whether the game has started or not
getHistory() - Method in class it.polimi.ingsw.Controller.Controller
 
getId() - Method in class it.polimi.ingsw.Model.CharacterCard
 
getId() - Method in class it.polimi.ingsw.Model.Cloud
The ID of the cloud is the index of the array in which the Cloud is stored
getId() - Method in class it.polimi.ingsw.Model.Island
 
getId() - Method in class it.polimi.ingsw.Model.IslandGroup
 
getId() - Method in class it.polimi.ingsw.Model.PlayerBoard
Get the ID of the player
getId() - Method in class it.polimi.ingsw.Server.Lobby
Get the id of the lobby
getID() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.SupportStructures.LobbyInfo
Get the UUID of the Lobby
getInetAddress() - Method in class it.polimi.ingsw.Network.SocketWrapper
Get the address this socket is bound to
getInfluencerOf(IslandGroup) - Method in class it.polimi.ingsw.Model.Model
 
getInt() - Method in class it.polimi.ingsw.Client.CLI.CliWriter
Support method to read an integer from command line, this method does not accept 'enter' as input
getIslandID() - Method in class it.polimi.ingsw.Controller.MoveDestination
 
getLastConnectedNickname() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.ClientConnected
Get the user that generated this response by connecting
getLastDisconnectedNickname() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.ClientDisconnected
Get the user that generated this response by disconnecting
getLobbyID() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.LobbyConnected
Get the id of the lobby
getMaxMovement() - Method in class it.polimi.ingsw.Model.AssistantCard
Every card has a maximum value for the movement to use in MoveMotherNature
getMaxPlayers() - Method in class it.polimi.ingsw.Server.Lobby
Get the maximum amount of players for the lobby
getMaxPlayers() - Method in class it.polimi.ingsw.Server.Messages.Events.Requests.CreateLobbyRequest
Get the maximum amount of players the lobby will have
getMaxPlayers() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.SupportStructures.LobbyInfo
Get the maximum amount of players allowed in the lobby
getModel() - Method in class it.polimi.ingsw.Client.CLI.ClientView
Get current game
getModel() - Method in class it.polimi.ingsw.Server.Messages.Events.Internal.ModelUpdateEvent
Get the Model object
getModel() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.ModelUpdated
Get the model
getMotherNatureSteps(ArrayList<IslandGroup>, IslandGroup) - Method in class it.polimi.ingsw.Client.GUI.Panels.IslandFieldPanel
Support method used to calculate difference between clicked islandGroup by user and actual motherNature's islandGroup
getMutableAssistantCards() - Method in class it.polimi.ingsw.Model.PlayerBoard
Get the AssistantCards linked to the player
getMutableCurrentPlayer() - Method in class it.polimi.ingsw.Model.TurnOrder
Get a reference to the current player
getMutableEffects() - Method in class it.polimi.ingsw.Model.Model
 
getMutableGroups() - Method in class it.polimi.ingsw.Model.IslandField
 
getMutableIslandById(int) - Method in class it.polimi.ingsw.Model.IslandField
 
getMutableIslandField() - Method in class it.polimi.ingsw.Model.Model
 
getMutableIslandGroupById(int) - Method in class it.polimi.ingsw.Model.IslandField
 
getMutableIslands() - Method in class it.polimi.ingsw.Model.IslandField
 
getMutableIslands() - Method in class it.polimi.ingsw.Model.IslandGroup
 
getMutableMotherNaturePosition() - Method in class it.polimi.ingsw.Model.IslandField
 
getMutableNoEntryTiles() - Method in class it.polimi.ingsw.Model.IslandGroup
 
getMutablePlayerBoard(int) - Method in class it.polimi.ingsw.Model.Model
Accessing a PlayerBoard can only be done through its ID since the nicknames can be non-unique
getMutablePlayerBoards() - Method in class it.polimi.ingsw.Model.Model
 
getMutablePlayerBoardsByTeamID(TeamID) - Method in class it.polimi.ingsw.Model.Model
In case there are 4 players, teams are enabled.
getMutablePlayers(TeamID) - Method in class it.polimi.ingsw.Model.TeamMapper
Get a team's players
getMutableSelectedCard(PlayerBoard) - Method in class it.polimi.ingsw.Model.TurnOrder
Get the card a user played to define the pecking order
getMutableStudentBag() - Method in class it.polimi.ingsw.Model.Model
 
getMutableTowerStorage(TeamID) - Method in class it.polimi.ingsw.Model.TeamMapper
Get a team's tower storage
getMutableTowerStorage(PlayerBoard) - Method in class it.polimi.ingsw.Model.TeamMapper
Get a team's tower storage
getMutableTurnOrder() - Method in class it.polimi.ingsw.Model.Model
 
getNextAction(Model) - Method in class it.polimi.ingsw.Client.GUI.Panels.GameInProgressPanel
 
getNickname() - Method in class it.polimi.ingsw.Client.CLI.ClientView
get Client's nickname
getNickname() - Method in class it.polimi.ingsw.Client.GUI.Context
 
getNickname() - Method in class it.polimi.ingsw.Model.PlayerBoard
Get the Nickname of the player
getNickname() - Method in class it.polimi.ingsw.Server.Messages.Events.Internal.ConnectEvent
Get the user that generated this event
getNickname() - Method in class it.polimi.ingsw.Server.Messages.Events.Requests.DeclarePlayerRequest
Get the nickname the user selected
getOptionalInt() - Method in class it.polimi.ingsw.Client.CLI.CliWriter
Support method to read an integer from command line, this method accepts 'enter' as input
getOwnTeachers(PlayerBoard) - Method in class it.polimi.ingsw.Model.Model
 
getOwnTeamTeacherCount(TeamID) - Method in class it.polimi.ingsw.Model.Model
 
getOwnTeamTeacherCount(PlayerBoard) - Method in class it.polimi.ingsw.Model.Model
 
getPawnColourFromText(String) - Static method in enum class it.polimi.ingsw.Model.Enums.PawnColour
Convert a string to a valid PawnColour
getPlayerBoardId() - Method in class it.polimi.ingsw.Client.GUI.Panels.PlayerBoardPanel
get PlayerBoard id
getPlayerBoardID() - Method in class it.polimi.ingsw.Controller.Actions.PlayerAction
 
getPlayerBoardNickname() - Method in class it.polimi.ingsw.Client.GUI.Panels.PlayerBoardPanel
get PlayerBoardNickname
getPlayers() - Method in class it.polimi.ingsw.Server.Lobby
Get a list of connected players
getPlayers() - Method in class it.polimi.ingsw.Server.Messages.Events.Internal.ConnectEvent
Get the players connected to the lobby
getPlayers() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.ClientConnected
Get the players connected to the lobby
getPlayers() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.ClientDisconnected
Get the players still connected to the lobby
getPlayers() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.SupportStructures.LobbyInfo
Get connected player nicknames
getPriority() - Method in class it.polimi.ingsw.Model.AssistantCard
Returns the priority of turn linked to the use of the card.
getPublicLobbies() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.LobbyServerAccept
Get a list of the open lobbies the client may join
getReport() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.PlayerActionFeedback
Get information about the response
getSelectedCards() - Method in class it.polimi.ingsw.Model.TurnOrder
Get all of the assistant cards played this round
getSerializedModel() - Method in class it.polimi.ingsw.Model.Model
Serializes the game model to a new de-serializable byte array.
getSize() - Method in class it.polimi.ingsw.Model.StudentBag
Check the remaining students in the bag
getSocketWrapper() - Method in class it.polimi.ingsw.Client.GUI.Context
 
getState() - Method in class it.polimi.ingsw.Model.Card01
Get card's content
getState() - Method in class it.polimi.ingsw.Model.Card05
Get card's content
getState() - Method in class it.polimi.ingsw.Model.Card07
 
getState() - Method in class it.polimi.ingsw.Model.Card11
 
getState() - Method in class it.polimi.ingsw.Model.StatefulEffect
Get the internal state of the card.
getStateType() - Method in class it.polimi.ingsw.Model.Card01
Get card's stateType
getStateType() - Method in class it.polimi.ingsw.Model.Card05
Get card's stateType
getStateType() - Method in class it.polimi.ingsw.Model.Card07
 
getStateType() - Method in class it.polimi.ingsw.Model.Card11
 
getStateType() - Method in class it.polimi.ingsw.Model.StatefulEffect
Get the type of state this card uses.
getStatusCode() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.Response
Get the status code of the response
getStudentButton(List<PawnColour>) - Method in class it.polimi.ingsw.Client.GUI.Panels.CharacterCardsPanel
Support method used for getting a list of StudentButtons starting from a list of PawnColours
getStudentCount() - Method in class it.polimi.ingsw.Model.IslandGroup
 
getStudents() - Method in class it.polimi.ingsw.Model.Island
 
getStudents() - Method in class it.polimi.ingsw.Model.IslandGroup
 
getSuccessfulRequestsByType(Class<?>) - Method in class it.polimi.ingsw.Client.GUI.Listeners.GUISocketListener
Count PlayerActions that have received a successful response from Server
getTargetIsland() - Method in class it.polimi.ingsw.Model.CharacterCardInput
 
getTargetPawn() - Method in class it.polimi.ingsw.Model.CharacterCardInput
 
getTargetPawnPairs() - Method in class it.polimi.ingsw.Model.CharacterCardInput
 
getTeachers() - Method in class it.polimi.ingsw.Model.Model
 
getTeamID() - Method in enum class it.polimi.ingsw.Model.Enums.TowerColour
Get the TeamID bound to a specific color of the tower
getTeamID(PlayerBoard) - Method in class it.polimi.ingsw.Model.TeamMapper
Get the team of a player
getTeamMapper() - Method in class it.polimi.ingsw.Model.Model
 
getTimeUsed() - Method in class it.polimi.ingsw.Model.CharacterCard
 
getTowerColour() - Method in class it.polimi.ingsw.Model.Island
If a tower is present, return a non-empty OptionalValue
getTowerColour() - Method in class it.polimi.ingsw.Model.IslandGroup
Get the colour of the towers stored on the islands.
getTowerCount() - Method in class it.polimi.ingsw.Model.IslandGroup
 
getTowerCount() - Method in class it.polimi.ingsw.Model.TowerStorage
Get the amount of towers left in storage
getUsed() - Method in class it.polimi.ingsw.Model.AssistantCard
If a card is used in a turn by the player, this flag must be set to true.
getWindow() - Method in class it.polimi.ingsw.Client.GUI.Context
 
getWinners() - Method in class it.polimi.ingsw.Model.Model
 
getWinners() - Method in class it.polimi.ingsw.Server.Messages.ServerResponses.GameOver
Get the winners of the game
goHome() - Method in class it.polimi.ingsw.Model.NoEntryTile
When called, sends the tile back to its home
GOLD - Static variable in class it.polimi.ingsw.Misc.Symbols
 
GRAY - Enum constant in enum class it.polimi.ingsw.Model.Enums.TowerColour
 
GRAY - Static variable in class it.polimi.ingsw.Misc.Symbols
 
GrayTower - Static variable in class it.polimi.ingsw.Client.GUI.IconLoader
 
GREEN - Enum constant in enum class it.polimi.ingsw.Model.Enums.PawnColour
 
GREEN - Static variable in class it.polimi.ingsw.Misc.Symbols
 
GreenStudent - Static variable in class it.polimi.ingsw.Client.GUI.IconLoader
 
GreenTeacher - Static variable in class it.polimi.ingsw.Client.GUI.IconLoader
 
groups - Variable in class it.polimi.ingsw.Model.IslandField
 
GUI - Class in it.polimi.ingsw.Client.GUI
Run game's gui version by creating a new Context and a new Window
GUI() - Constructor for class it.polimi.ingsw.Client.GUI.GUI
 
guiSocketListener - Variable in class it.polimi.ingsw.Client.GUI.Panels.CloudPanel
Contains GuiReader's information necessary to record user's requests during his turn
guiSocketListener - Variable in class it.polimi.ingsw.Client.GUI.Panels.GameInProgressPanel
Contains GuiReader's information necessary to record user's requests during his turn
guiSocketListener - Variable in class it.polimi.ingsw.Client.GUI.Panels.IslandFieldPanel
Contains GuiReader's information necessary to record user's requests during his turn
guiSocketListener - Variable in class it.polimi.ingsw.Client.GUI.Panels.PlayerBoardPanel
Contains GuiReader's information necessary to record user's requests during his turn
GUISocketListener - Class in it.polimi.ingsw.Client.GUI.Listeners
Handles messages received from server and keep a record of current player's actions executed during its turn
GUISocketListener(Context) - Constructor for class it.polimi.ingsw.Client.GUI.Listeners.GUISocketListener
Create a new GUIReader
A B C D E F G H I J K L M N O P Q R S T U V W Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form