Index
All Classes|All Packages
S
- SceneController - Class in it.polimi.ingsw.view.gui
-
Used to manages GUI's stages loading fxml files and conserve their root controllers (Note that only one stage will be active at a time)
- SceneController(Client) - Constructor for class it.polimi.ingsw.view.gui.SceneController
- sendBroadcast(Message) - Method in class it.polimi.ingsw.network.server.Match
-
Sends the specified message to every connected client
- sendLogin(boolean, String) - Method in class it.polimi.ingsw.network.client.Client
-
Sends a login message to server
- sendMessage(Message) - Method in class it.polimi.ingsw.network.server.ServerClientHandler
-
Sends the message to the client associated with this ClientHandler trough the socket
- sendToClient(Message) - Method in class it.polimi.ingsw.network.server.Match
-
Sends the specified message.
- sendToServer(Message) - Method in class it.polimi.ingsw.network.client.ServerConnector
-
Sends the message passed as parameter to server
- servant - Static variable in class it.polimi.ingsw.view.gui.GuiResources
- SERVANT - it.polimi.ingsw.model.ResourceType
- Server - Class in it.polimi.ingsw.network.server
-
This class accepts connection to a client and assign the client handling to the ServerClientHandler class via Thread.
- Server() - Constructor for class it.polimi.ingsw.network.server.Server
- SERVER_DOWN - it.polimi.ingsw.network.messages.MessageType
- SERVER_TIMEOUT - Static variable in class it.polimi.ingsw.utility.ConfigParameters
- ServerClientHandler - Class in it.polimi.ingsw.network.server
-
Every instance of this class handles the server side connection of a specific client
- ServerConnector - Class in it.polimi.ingsw.network.client
-
Class that manage the connection with the server.
- ServerConnector(Socket, Client) - Constructor for class it.polimi.ingsw.network.client.ServerConnector
-
Constructor for CliDrawer class
- setActive(InterfacePlayerBoard) - Method in class it.polimi.ingsw.model.leadercard.LeaderCard
-
if it's allowed sets the LeaderCard state to active
- setActiveLeadercard(int) - Method in class it.polimi.ingsw.model.PlayerBoard
-
Activate a leader card
- setClient(Client) - Method in class it.polimi.ingsw.view.gui.controllers.GUIController
-
Set the client of this controller.
- setClientTurnManager(ClientTurnManagerInterface) - Method in class it.polimi.ingsw.network.client.Client
- setClientTurnManager(ClientTurnManagerInterface) - Method in class it.polimi.ingsw.view.cli.Cli
- setClientTurnManager(ClientTurnManagerInterface) - Method in class it.polimi.ingsw.view.gui.GUI
- setClientTurnManager(ClientTurnManagerInterface) - Method in interface it.polimi.ingsw.view.ViewInterface
- setClientUsername(String) - Method in class it.polimi.ingsw.view.ClientModelState
- setClientUsername(String) - Method in interface it.polimi.ingsw.view.ClientModelUpdaterInterface
-
Sets the username of this client, which is passed as parameter
- setClientUsername(String) - Method in class it.polimi.ingsw.view.gui.GUI
- setConnected(boolean) - Method in class it.polimi.ingsw.network.server.ServerClientHandler
- setController(NetworkVirtualView) - Method in class it.polimi.ingsw.model.market.Market
- setController(ModelObserver) - Method in class it.polimi.ingsw.model.CardSlots
- setController(ModelObserver) - Method in class it.polimi.ingsw.model.Chest
- setController(ModelObserver) - Method in class it.polimi.ingsw.model.PlayerBoard
- setController(ModelObserver) - Method in class it.polimi.ingsw.model.track.LorenzoTrack
- setController(ModelObserver) - Method in class it.polimi.ingsw.model.Warehouse
- setCurrentPlayer(String) - Method in interface it.polimi.ingsw.network.client.ClientTurnManagerInterface
-
Sets the String passed as parameter as current player
- setCurrentPlayer(String) - Method in class it.polimi.ingsw.network.client.CliTurnManager
- setCurrentPlayer(String) - Method in class it.polimi.ingsw.network.client.GuiTurnManager
- setEndGameObserver(EndGameObserver) - Method in class it.polimi.ingsw.model.PlayerBoard
- setErrorDescription(String) - Method in class it.polimi.ingsw.view.gui.controllers.FatalErrorController
-
Set the error description that must be shown to the client
- setErrorLable(String) - Method in class it.polimi.ingsw.view.gui.controllers.GameboardController
-
Display and error
- setLocal() - Method in class it.polimi.ingsw.network.client.Client
- setLogged(boolean) - Method in class it.polimi.ingsw.network.server.ServerClientHandler
- setLorenzoToken(Image) - Method in class it.polimi.ingsw.view.gui.controllers.GameboardController
-
Set the last lorenzo token image
- setOtherPlayer(List<String>) - Method in class it.polimi.ingsw.view.gui.controllers.GameboardController
-
Create the player boards of the other players loading the fxml files and saving their controller
- setState(ClientModelUpdaterInterface) - Method in class it.polimi.ingsw.network.client.Client
- setStateIsPlayerChanged(TurnState) - Method in interface it.polimi.ingsw.network.client.ClientTurnManagerInterface
-
set new phase and new currentPlayer
- setStateIsPlayerChanged(TurnState) - Method in class it.polimi.ingsw.network.client.CliTurnManager
- setStateIsPlayerChanged(TurnState) - Method in class it.polimi.ingsw.network.client.GuiTurnManager
- setTempMarble(boolean, int) - Method in class it.polimi.ingsw.view.SimpleGameState
-
Sets into tempMarble list the marbles player got from the market
- setTempMarbleVisible() - Method in class it.polimi.ingsw.view.gui.controllers.GameboardController
- SETUP_CHOOSE_RESOURCES - it.polimi.ingsw.controller.action.ActionType
- SETUP_CHOOSING_RESOURCES - it.polimi.ingsw.model.PhaseType
- SETUP_DISCARD_LEADERS - it.polimi.ingsw.controller.action.ActionType
- SETUP_DISCARDING_LEADERS - it.polimi.ingsw.model.PhaseType
- setupClass() - Method in class it.polimi.ingsw.model.DevelopCardDeck
-
this method is called by the cardParser method in GSON class to complete the setup process of this class it creates the card matrix from the card list
- setupLeaderCard(LeaderSetup) - Method in class it.polimi.ingsw.view.SimplePlayerState
-
Setups non activated LeaderCards
- setupLorenzo() - Method in class it.polimi.ingsw.view.gui.controllers.GameboardController
-
Set the last token and the black cross visible
- setupLorenzo() - Method in class it.polimi.ingsw.view.gui.controllers.PlayerboardController
-
Set the black cross visible
- setUsername(String) - Method in class it.polimi.ingsw.controller.action.Action
-
Set the player for which this action must be performed.
- setUsername(String) - Method in class it.polimi.ingsw.model.track.LorenzoTrack
- setUsername(String) - Method in class it.polimi.ingsw.network.client.Client
- setUsername(String) - Method in class it.polimi.ingsw.network.messages.Message
- setUsername(String) - Method in class it.polimi.ingsw.network.server.ServerClientHandler
- setUsername(String) - Method in class it.polimi.ingsw.view.gui.controllers.GameboardController
-
Set player username and create their personal player board loading the correct fxml file and saving its controller
- setUsername(String) - Method in class it.polimi.ingsw.view.gui.controllers.PlayerboardController
- setView(ViewInterface) - Method in class it.polimi.ingsw.network.client.Client
- setWinner(String, int) - Method in class it.polimi.ingsw.view.gui.controllers.EndGameController
-
Set which player is the winner
- shield - Static variable in class it.polimi.ingsw.view.gui.GuiResources
- SHIELD - it.polimi.ingsw.model.ResourceType
- SHOP_MARKET - it.polimi.ingsw.controller.action.ActionType
- ShopMarketAction - Class in it.polimi.ingsw.controller.action
-
An action to request to the model to buy a specific row or column of the marked to a specific player
- ShopMarketAction(boolean, int) - Constructor for class it.polimi.ingsw.controller.action.ShopMarketAction
- ShopMarketAction(String, boolean, int) - Constructor for class it.polimi.ingsw.controller.action.ShopMarketAction
- shopMarketColumn(int) - Method in class it.polimi.ingsw.model.PlayerBoard
-
Saves the market marbles taken from the market in tempMarketMarble
- shopMarketRow(int) - Method in class it.polimi.ingsw.model.PlayerBoard
-
Saves the market marbles taken from the market in tempMarketMarble
- SHOPPING - it.polimi.ingsw.model.PhaseType
- SHOPPING_LEADER - it.polimi.ingsw.model.PhaseType
- shuffleDeck() - Method in class it.polimi.ingsw.model.DevelopCardDeck
-
Shuffles the Deck
- shuffleLeaderList() - Method in class it.polimi.ingsw.model.leadercard.LeaderCardDeck
-
Randomly permutes leaderCards in the deck
- ShuffleToken - Class in it.polimi.ingsw.model.singleplayer
-
Represents Lorenzo's action tokens that shuffle action token's deck and move foreword of one position Lorenzo's faith marker in a single player game
- ShuffleToken() - Constructor for class it.polimi.ingsw.model.singleplayer.ShuffleToken
- ShuffleToken(ModelObserver) - Constructor for class it.polimi.ingsw.model.singleplayer.ShuffleToken
- SimpleGameState - Class in it.polimi.ingsw.view
-
Class containing a simplified version of the game state.
- SimpleGameState() - Constructor for class it.polimi.ingsw.view.SimpleGameState
-
Constructor for SimpleGameState class
- SimplePlayerState - Class in it.polimi.ingsw.view
-
Class containing a simplified version of the PlayerBoard state
- SimplePlayerState() - Constructor for class it.polimi.ingsw.view.SimplePlayerState
-
Constructor for SimplePlayerState class
- SinglePlayer - Class in it.polimi.ingsw.model.singleplayer
-
Represents a single player game
- SinglePlayer(ModelObserver) - Constructor for class it.polimi.ingsw.model.singleplayer.SinglePlayer
-
Create a new single player game
- Square - Class in it.polimi.ingsw.model.track
-
Represents a single cell of the track
- Square() - Constructor for class it.polimi.ingsw.model.track.Square
-
constructor of the class instances of this class are made with a json file
- Square(int, boolean, int) - Constructor for class it.polimi.ingsw.model.track.Square
- squareCharacter - Static variable in class it.polimi.ingsw.utility.ConfigParameters
- start(Stage) - Method in class it.polimi.ingsw.view.gui.GUIStarter
-
Method called by javafx when the gui starts: instantiates: a client to receives messages from the server, a gui to receive update from the client and a scene controller to load and manages gui windows
- start(Stage) - Method in class it.polimi.ingsw.view.gui.SceneController
-
Initialize the first stage and ask the user for server connection
- startGame() - Method in class it.polimi.ingsw.model.Game
-
Starts this game
- startGame() - Method in class it.polimi.ingsw.model.TurnManager
-
Start game
- STARTING_GAME_SETUP - it.polimi.ingsw.network.messages.MessageType
- startingSetupUpdate() - Method in class it.polimi.ingsw.view.cli.Cli
- startingSetupUpdate() - Method in class it.polimi.ingsw.view.gui.GUI
- startingSetupUpdate() - Method in interface it.polimi.ingsw.view.ViewInterface
-
Starts the setup of the game
- StepForwardToken - Class in it.polimi.ingsw.model.singleplayer
-
Represents Lorenzo's action tokens that move foreword of two position Lorenzo's faith marker in a single player game
- StepForwardToken() - Constructor for class it.polimi.ingsw.model.singleplayer.StepForwardToken
- stone - Static variable in class it.polimi.ingsw.view.gui.GuiResources
- STONE - it.polimi.ingsw.model.ResourceType
- stop() - Method in class it.polimi.ingsw.network.client.LocalVirtualModel
- stop() - Method in class it.polimi.ingsw.network.client.NetworkVirtualModel
- stop() - Method in class it.polimi.ingsw.network.client.ServerConnector
-
sends a quit message to server and closes client socket
- stop() - Method in interface it.polimi.ingsw.network.client.VirtualModel
-
Stops action and message forwarding
- stop() - Method in class it.polimi.ingsw.view.gui.GUIStarter
-
Method called by javafx when the last stage will be closed: close the server socket and the process
- StorageBehaviour - Class in it.polimi.ingsw.model.leadercard
-
The CardBehaviour that represents the producing behaviour: a leader card with this behaviour will add a new warehouse level
- StorageBehaviour(ResourceType) - Constructor for class it.polimi.ingsw.model.leadercard.StorageBehaviour
All Classes|All Packages