Index
All Classes|All Packages
G
- Game - Class in it.polimi.ingsw.model
-
Represents a game
- Game(ModelObserver) - Constructor for class it.polimi.ingsw.model.Game
-
Create a new multi player game
- GAME_ALREADY_STARTED - it.polimi.ingsw.network.messages.ErrorType
- GAME_ENDED - it.polimi.ingsw.network.messages.MessageType
- GAME_STARTED - it.polimi.ingsw.network.messages.MessageType
- gameAlreadyExists() - Method in class it.polimi.ingsw.view.gui.controllers.LoginController
-
notify the player that the name of the match they tried to create is occupied by another match
- GameboardController - Class in it.polimi.ingsw.view.gui.controllers
-
Java controller of the gameboard.fxml file
- GameboardController() - Constructor for class it.polimi.ingsw.view.gui.controllers.GameboardController
- gameboardFXML - Static variable in class it.polimi.ingsw.view.gui.GuiResources
- gameCannotJoin() - Method in class it.polimi.ingsw.view.gui.controllers.LoginController
-
Notify the player that they cannot join the match they tried to: i.e. the match doesn't exist, the match is full or the match is already started
- gameStarted() - Method in class it.polimi.ingsw.model.Game
-
Notify the game that the setup phase is finished
- gameStartedSetup(List<String>) - Method in class it.polimi.ingsw.view.ClientModelState
- gameStartedSetup(List<String>) - Method in interface it.polimi.ingsw.view.ClientModelUpdaterInterface
-
Setups players turn order
- gameStartedSetup(List<String>) - Method in class it.polimi.ingsw.view.gui.GUI
- gameWait() - Method in class it.polimi.ingsw.view.gui.controllers.LoginController
-
Notify the player that the creation of the game they tried to join is not already completed
- getAction() - Method in class it.polimi.ingsw.network.messages.Message
-
if the messageType is ACTION this method returns the action object contained as payload in the message if the payload doesn't contain an action returns null
- getActive() - Method in class it.polimi.ingsw.model.track.Square
-
getter of active
- getActiveLeaderCards() - Method in class it.polimi.ingsw.view.SimplePlayerState
-
Returns active LeaderCards present in this SimplePlayerState
- getActual() - Method in exception it.polimi.ingsw.model.modelexceptions.WrongResourceNumberException
- getAvailableActions() - Method in enum it.polimi.ingsw.model.PhaseType
- getCard(int, int) - Method in class it.polimi.ingsw.model.DevelopCardDeck
-
returns the reference to a card contained in the Deck given the position row/column NOTE: this method doesn't remove the card
- getCardFlag() - Method in class it.polimi.ingsw.model.DevelopCard
- getCardFromId(int) - Method in class it.polimi.ingsw.model.DevelopCardDeck
-
get the developCard corresponding to the specified Id
- getCardFromId(int) - Method in class it.polimi.ingsw.model.leadercard.LeaderCardDeck
-
get the leaderCard corresponding to the specified Id
- getCardId() - Method in class it.polimi.ingsw.model.DevelopCard
- getCardId() - Method in class it.polimi.ingsw.model.updatecontainers.LeaderUpdate
-
returns the ID of the card that has been activated or discarded (these 2 cases are distinguished by message type)
- getCardSlots() - Method in interface it.polimi.ingsw.model.InterfacePlayerBoard
- getCardSlots() - Method in class it.polimi.ingsw.model.PlayerBoard
- getCardSlots() - Method in class it.polimi.ingsw.view.SimplePlayerState
- getChest() - Method in interface it.polimi.ingsw.model.InterfacePlayerBoard
- getChest() - Method in class it.polimi.ingsw.model.PlayerBoard
- getChest() - Method in class it.polimi.ingsw.view.SimplePlayerState
-
Returns the chest
- getColor() - Method in class it.polimi.ingsw.model.CardFlag
- getColor() - Method in enum it.polimi.ingsw.model.market.MarbleColor
- getColor() - Method in class it.polimi.ingsw.model.market.MarketMarble
- getColor() - Method in enum it.polimi.ingsw.model.ResourceType
- getColumn() - Method in enum it.polimi.ingsw.model.DevelopCardColor
- getColumn() - Method in class it.polimi.ingsw.model.updatecontainers.DevelopCardDeckUpdate
-
returns the column where a card has been removed
- getConnectionController() - Method in class it.polimi.ingsw.view.gui.SceneController
- getCost() - Method in class it.polimi.ingsw.model.DevelopCard
- getCurrentPhase() - Method in interface it.polimi.ingsw.model.IGameState
- getCurrentPhase() - Method in class it.polimi.ingsw.model.TurnManager
- getCurrentPhase() - Method in class it.polimi.ingsw.network.client.CliTurnManager
- getCurrentPlayer() - Method in interface it.polimi.ingsw.model.IGameState
- getCurrentPlayer() - Method in class it.polimi.ingsw.model.TurnManager
- getCurrentPlayer() - Method in class it.polimi.ingsw.network.client.Client
- getCurrentPlayer() - Method in interface it.polimi.ingsw.network.client.ClientTurnManagerInterface
-
Returns the username of the current player
- getCurrentPlayer() - Method in class it.polimi.ingsw.network.client.CliTurnManager
- getCurrentPlayer() - Method in class it.polimi.ingsw.network.client.GuiTurnManager
- getCurrentPosition() - Method in class it.polimi.ingsw.model.track.Track
- getDevCardID() - Method in class it.polimi.ingsw.model.updatecontainers.CardSlotUpdate
-
returns ID of the card to be placed in the slot
- getDevDeck() - Method in class it.polimi.ingsw.model.updatecontainers.DevelopCardDeckSetup
-
returns the card deck as a matrix of ID lists
- getDevelopCardDeck() - Method in interface it.polimi.ingsw.model.InterfacePlayerBoard
- getDevelopCardDeck() - Method in class it.polimi.ingsw.model.PlayerBoard
- getDevelopCardFromId(int) - Static method in class it.polimi.ingsw.view.cli.drawer.DevelopCardConstructor
-
Returns the DevelopCard associated to the @cardId passed as parameter
- getEndGameController() - Method in class it.polimi.ingsw.view.gui.SceneController
- getExpected() - Method in exception it.polimi.ingsw.model.modelexceptions.WrongResourceNumberException
- getGame() - Method in interface it.polimi.ingsw.model.IGameState
- getGame() - Method in class it.polimi.ingsw.model.TurnManager
- getGameboardController() - Method in class it.polimi.ingsw.view.gui.SceneController
- getGsonBuilder() - Static method in class it.polimi.ingsw.utility.GSON
-
Static method to obtain a GsonBuilder with the necessary modifiers enebled
- getGuiColor() - Method in enum it.polimi.ingsw.model.market.MarbleColor
- getImage() - Method in class it.polimi.ingsw.model.DevelopCard
- getImage() - Method in class it.polimi.ingsw.model.leadercard.LeaderCard
- getIndex() - Method in class it.polimi.ingsw.model.updatecontainers.MarketUpdate
-
return index of the pushed row/column
- getIsRow() - Method in class it.polimi.ingsw.model.updatecontainers.MarketUpdate
-
returns true if a row has been bushed, false otherwise
- getKey() - Method in class it.polimi.ingsw.utility.Pair
- getLeaderCardFromId(int) - Static method in class it.polimi.ingsw.view.cli.drawer.LeaderConstructor
-
Returns the LeaderCard associated to the @cardId passed as parameter
- getLeaderCards() - Method in interface it.polimi.ingsw.model.InterfacePlayerBoard
- getLeaderCards() - Method in class it.polimi.ingsw.model.PlayerBoard
- getLeaderId() - Method in class it.polimi.ingsw.model.leadercard.LeaderCard
- getLeaderLevels() - Method in class it.polimi.ingsw.view.SimplePlayerState
-
Returns levels of the warehouse that belongs to LeaderCards NOTE: can return null
- getLeaderList() - Method in class it.polimi.ingsw.model.updatecontainers.LeaderSetup
-
returns the ID list of the 4 leader cards selected fot that specific player
- getLevel() - Method in class it.polimi.ingsw.model.CardFlag
- getLevel() - Method in class it.polimi.ingsw.model.updatecontainers.WarehouseUpdate
-
returns the level in which the change occurred
- getLoginController() - Method in class it.polimi.ingsw.view.gui.SceneController
- getLorenzoTrackPosition() - Method in class it.polimi.ingsw.view.SimpleGameState
- getMarbleColorByColor(String) - Static method in enum it.polimi.ingsw.model.market.MarbleColor
-
Returns the MarbleColor value associated to the String color passed as parameter
- getMarbleMatrix() - Method in class it.polimi.ingsw.model.updatecontainers.MarketSetup
- getMarket() - Method in class it.polimi.ingsw.view.SimpleGameState
- getMatchName() - Method in class it.polimi.ingsw.network.server.Match
- getMaxPlayer() - Method in exception it.polimi.ingsw.model.modelexceptions.MaximumNumberOfPlayersException
- getMessageType() - Method in class it.polimi.ingsw.network.messages.Message
- getMoveForwardObserverList() - Method in class it.polimi.ingsw.model.PlayerBoard
- getNotActiveLeaderCards() - Method in class it.polimi.ingsw.view.SimplePlayerState
-
return non-active leader cards NOTE: can return null
- getNumberOf(ResourceType) - Method in class it.polimi.ingsw.model.Chest
-
get the number of resources of the specified type contained in the chest NOTE: to make this method include newly added resources you need to call
Chest.endOfTurnMapsMerge() - getNumberOf(ResourceType) - Method in class it.polimi.ingsw.model.Warehouse
-
Returns the total amount of the specified resources contained in the warehouse
- getNumberOfCardSlots() - Method in class it.polimi.ingsw.model.CardSlots
-
Getter for the number of slots
- getNumberOfColumn() - Method in class it.polimi.ingsw.model.market.Market
- getNumberOfPlayersController() - Method in class it.polimi.ingsw.view.gui.SceneController
- getNumberOfRow() - Method in class it.polimi.ingsw.model.market.Market
- getOnWhite() - Method in class it.polimi.ingsw.model.leadercard.CardBehaviour
-
returns the resource white marble ResourceType produced by the LeaderCard ability.
- getOnWhite() - Method in class it.polimi.ingsw.model.leadercard.MarbleModifierBehaviour
- getOrderedPlayers() - Method in class it.polimi.ingsw.model.Game
- getPayload() - Method in class it.polimi.ingsw.network.messages.Message
-
returns message payload as a String
- getPayloadByType(Class<T>) - Method in class it.polimi.ingsw.network.messages.Message
-
returns message payload as a java object of the specified type
- getPhase() - Method in class it.polimi.ingsw.model.updatecontainers.TurnState
-
returns the current gamePhase
- getPlayer() - Method in class it.polimi.ingsw.model.updatecontainers.TurnState
-
returns the current player's username
- getPlayerBoard(String) - Method in class it.polimi.ingsw.model.Game
-
Returns the player board of the specified player
- getPlayerBoardController(String) - Method in class it.polimi.ingsw.view.gui.controllers.GameboardController
- getPlayerPosition() - Method in class it.polimi.ingsw.model.updatecontainers.TrackUpdate
-
returns the current position in the track
- getPlayersNumber() - Method in class it.polimi.ingsw.network.server.Match
- getPlayerTurnPosition() - Method in class it.polimi.ingsw.view.ClientModelState
- getPlayerTurnPosition() - Method in interface it.polimi.ingsw.view.ClientStateViewer
-
Returns the position that this client has in the turn list
- getProducibleCardSlotsId() - Method in class it.polimi.ingsw.view.SimplePlayerState
-
Returns the ids of the develop cards on which the player can activate the production on
- getProducibleLeaders() - Method in class it.polimi.ingsw.view.SimplePlayerState
-
Returns the ids of the leader cards on which the player can activate the production on
- getProduct() - Method in class it.polimi.ingsw.model.DevelopCard
- getProductionRequirement() - Method in class it.polimi.ingsw.model.leadercard.CardBehaviour
- getProductionRequirement() - Method in class it.polimi.ingsw.model.leadercard.LeaderCard
- getProductionRequirement() - Method in class it.polimi.ingsw.model.leadercard.LeaderProduceBehaviour
- getQuantity() - Method in class it.polimi.ingsw.model.updatecontainers.ChestUpdate
-
returns the new quantity value of the updated resource type
- getQuantity() - Method in class it.polimi.ingsw.model.updatecontainers.WarehouseUpdate
-
returns the new quantity of the changed resource
- getRed() - Method in class it.polimi.ingsw.model.track.Square
-
getter of red
- getRequiredCardFlags() - Method in class it.polimi.ingsw.model.leadercard.LeaderCard
- getRequiredResources() - Method in class it.polimi.ingsw.model.leadercard.LeaderCard
- getRequirement() - Method in class it.polimi.ingsw.model.DevelopCard
- getResourceToDiscount() - Method in class it.polimi.ingsw.model.leadercard.CardBehaviour
- getResourceToDiscount() - Method in class it.polimi.ingsw.model.leadercard.DiscountBehaviour
- getResourceType() - Method in class it.polimi.ingsw.model.updatecontainers.ChestUpdate
-
returns the resource type that has changed quantity
- getResourceType() - Method in class it.polimi.ingsw.model.updatecontainers.WarehouseUpdate
-
returns the resource that has been changed
- getResToDiscount() - Method in class it.polimi.ingsw.model.leadercard.LeaderCard
- getResToStore() - Method in class it.polimi.ingsw.model.leadercard.CardBehaviour
- getResToStore() - Method in class it.polimi.ingsw.model.leadercard.LeaderCard
- getResToStore() - Method in class it.polimi.ingsw.model.leadercard.StorageBehaviour
- getRow() - Method in class it.polimi.ingsw.model.updatecontainers.DevelopCardDeckUpdate
-
returns the row where a card has been removed
- getSceneController() - Method in class it.polimi.ingsw.view.gui.GUI
- getSimpleGameState() - Method in class it.polimi.ingsw.view.ClientModelState
- getSimpleGameState() - Method in interface it.polimi.ingsw.view.ClientStateViewer
-
Returns the SimpleGameState
- getSimplePlayerState() - Method in class it.polimi.ingsw.view.ClientModelState
- getSimplePlayerState() - Method in interface it.polimi.ingsw.view.ClientStateViewer
-
Returns this client's SimplePlayerState
- getSimplePlayerState(String) - Method in class it.polimi.ingsw.view.ClientModelState
- getSimplePlayerState(String) - Method in interface it.polimi.ingsw.view.ClientStateViewer
-
Returns the SimplePlayerState belonging to the specified player
- getSlide() - Method in class it.polimi.ingsw.model.updatecontainers.MarketSetup
- getSlide() - Method in class it.polimi.ingsw.view.SimpleGameState
- getSlotNumber() - Method in class it.polimi.ingsw.model.updatecontainers.CardSlotUpdate
-
returns the slot number in which to put the card
- getStatus() - Method in class it.polimi.ingsw.model.market.Market
-
Get the current arrangement of marbles in this market
- getTempMarble() - Method in class it.polimi.ingsw.view.SimpleGameState
- getTempMarketMarble() - Method in class it.polimi.ingsw.model.PlayerBoard
- getTrack() - Method in interface it.polimi.ingsw.model.InterfacePlayerBoard
- getTrack() - Method in class it.polimi.ingsw.model.PlayerBoard
- getTrack() - Method in class it.polimi.ingsw.model.track.LorenzoTrack
-
getter of the track
- getTrackPosition() - Method in interface it.polimi.ingsw.model.MoveForwardObserver
- getTrackPosition() - Method in class it.polimi.ingsw.model.track.LorenzoTrack
- getTrackPosition() - Method in class it.polimi.ingsw.view.SimplePlayerState
- getTurnManager() - Method in class it.polimi.ingsw.network.server.Match
- getUsername() - Method in class it.polimi.ingsw.controller.action.Action
- getUsername() - Method in class it.polimi.ingsw.model.PlayerBoard
- getUsername() - Method in class it.polimi.ingsw.network.client.Client
- getUsername() - Method in class it.polimi.ingsw.network.messages.Message
- getUsername() - Method in class it.polimi.ingsw.network.server.ServerClientHandler
- getUsername() - Method in class it.polimi.ingsw.view.ClientModelState
- getUsername() - Method in interface it.polimi.ingsw.view.ClientStateViewer
-
Returns this client's username
- getUsername() - Method in class it.polimi.ingsw.view.gui.controllers.PlayerboardController
- getValue() - Method in class it.polimi.ingsw.utility.Pair
- getVaticanFlipped() - Method in class it.polimi.ingsw.view.SimplePlayerState
- getVictoryPoints() - Method in class it.polimi.ingsw.model.DevelopCard
- getVictoryPoints() - Method in class it.polimi.ingsw.model.leadercard.LeaderCard
-
get the number of victory points
- getVictoryPoints() - Method in class it.polimi.ingsw.model.track.Square
-
getter of victoryPoints
- getView() - Method in class it.polimi.ingsw.network.client.Client
- getWarehouse() - Method in interface it.polimi.ingsw.model.InterfacePlayerBoard
- getWarehouse() - Method in class it.polimi.ingsw.model.PlayerBoard
- getWarehouseLevels() - Method in class it.polimi.ingsw.view.SimplePlayerState
-
Returns normal levels of warehouse (so excluding leader levels if they are present)
- getWhite() - Method in class it.polimi.ingsw.model.leadercard.LeaderCard
- getZone() - Method in class it.polimi.ingsw.model.updatecontainers.VaticanReport
- GOLD - it.polimi.ingsw.model.ResourceType
- GREEN - it.polimi.ingsw.model.DevelopCardColor
- GREY - it.polimi.ingsw.model.market.MarbleColor
- GSON - Class in it.polimi.ingsw.utility
-
Contains all the possible method used to parse to and from a json string.
- GUI - Class in it.polimi.ingsw.view.gui
- GUI(Client) - Constructor for class it.polimi.ingsw.view.gui.GUI
- GUIController - Class in it.polimi.ingsw.view.gui.controllers
-
A generic fxml file controller
- GUIController() - Constructor for class it.polimi.ingsw.view.gui.controllers.GUIController
- GuiResources - Class in it.polimi.ingsw.view.gui
-
Contains resources used in gui (NOTE: card images are contained in the JSON files and loaded by their specific classes)
- GUIStarter - Class in it.polimi.ingsw.view.gui
-
Class used by javafx to start GUI
- GUIStarter() - Constructor for class it.polimi.ingsw.view.gui.GUIStarter
- GuiTurnManager - Class in it.polimi.ingsw.network.client
-
Class instantiated once a game is played in GUI configuration.
- GuiTurnManager(Client, ViewInterface) - Constructor for class it.polimi.ingsw.network.client.GuiTurnManager
-
Constructor for GuiTurnManager class
All Classes|All Packages