Index

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

S

s - Variable in class it.polimi.ingsw.gc14.View.TUI.AsciiTable
Border style used to draw corners, lines, and junctions.
safeQuit(ClientController) - Method in class it.polimi.ingsw.gc14.ClientLauncherTUI
Disconnects the client if one is currently connected; safe to call when already disconnected.
sameSubnet(InetAddress, InetAddress, int) - Static method in class it.polimi.ingsw.gc14.Network.InterfaceResolver
Returns true if a and b share the same subnet given a CIDR prefix length.
save(Game) - Method in class it.polimi.ingsw.gc14.SaveManager
Serializes the game model to disk, creating parent directories if needed.
SAVE_RELATIVE_PATH - Static variable in class it.polimi.ingsw.gc14.SaveManager
Relative sub-path of the save file inside the JAR directory.
saveManager - Variable in class it.polimi.ingsw.gc14.GameEventProcessor
Persists and deletes game save files.
SaveManager - Class in it.polimi.ingsw.gc14
Handles persistence of the game model to and from disk.
SaveManager(Class) - Constructor for class it.polimi.ingsw.gc14.SaveManager
Constructs a SaveManager whose save file is located relative to the JAR directory of the given anchor class.
scene - Variable in class it.polimi.ingsw.gc14.View.GUI.FireParticleSystem
The scene whose dimensions are used to position and fade particles.
selectedFrame - Variable in class it.polimi.ingsw.gc14.View.GUI.TotemFXMLController
The StackPane frame of the currently selected totem card, or null.
selectedIndex - Variable in class it.polimi.ingsw.gc14.View.GUI.TotemFXMLController
Index of the currently selected totem, or -1 if none selected.
separators - Variable in class it.polimi.ingsw.gc14.View.TUI.AsciiTable
Indices of rows after which a horizontal separator line is drawn.
SERVER_CRASHED - Enum constant in enum class it.polimi.ingsw.gc14.ErrorType
The server has crashed or become unreachable.
SERVER_UNREACHABLE - Enum constant in enum class it.polimi.ingsw.gc14.ErrorType
The server is unreachable.
ServerLauncher - Class in it.polimi.ingsw.gc14
Main server entry point.
ServerLauncher(BlockingQueue, GameController, LimitedMap, CompositeClientBroadcaster, SaveManager) - Constructor for class it.polimi.ingsw.gc14.ServerLauncher
Constructs a ServerLauncherTest and wires all components together.
setAction(Runnable) - Method in class it.polimi.ingsw.gc14.LimitedMap
Sets a new action to execute when the map size reaches or exceeds the limit.
setAvailableTotems(List) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Sets the list of totems still available for selection.
setClient(IClient) - Method in class it.polimi.ingsw.gc14.Controller.ClientController
Sets the network client.
setController(ClientController) - Method in class it.polimi.ingsw.gc14.View.GUI.GUI
Injects the client controller into this GUI.
setController(ClientController) - Method in class it.polimi.ingsw.gc14.View.GUI.LoginFXMLController
Injects the client controller into this FXML controller.
setController(ClientController) - Method in class it.polimi.ingsw.gc14.View.GUI.MainFXMLController
Injects the client controller and wires up the skip-turn button action.
setController(ClientController) - Method in class it.polimi.ingsw.gc14.View.GUI.TotemFXMLController
Injects the client controller into this FXML controller.
setController(ClientController, Runnable) - Method in class it.polimi.ingsw.gc14.View.GUI.LeaderboardFXMLController
Injects the client controller, a post-game action, and the login scene reference.
setCurrentState(CurrentState) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Sets the current state of the game.
setData(Map, OrderLogicCard, CurrentState, List) - Method in class it.polimi.ingsw.gc14.Network.NetworkEvent
Sets the game data associated with this network event.
setDisconnectedPlayers(ArrayList) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Sets the list of usernames of currently disconnected players.
setError(boolean) - Method in class it.polimi.ingsw.gc14.View.GUI.MainFXMLController
Sets the error flag; called by GUI before delegating to MainFXMLController.render().
setErrorType(ErrorType) - Method in class it.polimi.ingsw.gc14.Network.NetworkEvent
Overrides the error type for this event.
setIsError(boolean) - Method in class it.polimi.ingsw.gc14.Network.NetworkEvent
Sets whether the event represents an error.
setLastEvent(NetworkEvent) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Sets the last network event applied to the game state.
setLimit(int) - Method in class it.polimi.ingsw.gc14.LimitedMap
Sets a new size limit for this map.
setLineReader(LineReader) - Method in class it.polimi.ingsw.gc14.View.TUI.TUI
Registers the active JLine LineReader.
setLowerListBuildingCards(ArrayList) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Replaces the lower row of building cards on the board.
setLowerListTribeCards(ArrayList) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Replaces the lower row of tribe cards on the board.
setModel(Game) - Method in class it.polimi.ingsw.gc14.Controller.GameController
Updates the game model managed by this controller.
setModel(MiniModel) - Method in class it.polimi.ingsw.gc14.Controller.ClientController
Sets the local mini model and updates the view accordingly.
setModel(MiniModel) - Method in class it.polimi.ingsw.gc14.View.GUI.GUI
Updates the local mini model reference used by the GUI.
setModel(MiniModel) - Method in interface it.polimi.ingsw.gc14.View.IView
Updates the view's local copy of the game model.
setModel(MiniModel) - Method in class it.polimi.ingsw.gc14.View.TUI.TUI
Updates the model stored in this view.
setMyUsername(String) - Method in class it.polimi.ingsw.gc14.Controller.ClientController
Sets the username associated with this client.
setNPlayer(int) - Method in class it.polimi.ingsw.gc14.Model.Game
Sets the configured number of players for this game.
setOrderLogicCard(OrderLogicCard) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Sets the card used to manage the player turn order.
setPlayers(List) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Replaces or updates the players stored in the mini model.
setSlotPlayerMap(Map) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Sets the map associating occupied slots with players.
setStandingPlayers(List) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Sets the final standing of the players.
setTotem(Totems) - Method in class it.polimi.ingsw.gc14.Model.Player
Sets the totem for this player.
setUpperListBuildingCards(ArrayList) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Replaces the upper row of building cards on the board.
setUpperListTribeCards(ArrayList) - Method in class it.polimi.ingsw.gc14.Model.MiniModel
Replaces the upper row of tribe cards on the board.
setUsername(String) - Method in class it.polimi.ingsw.gc14.View.TUI.TUI
Sets the username of the local player.
Shaman - Class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters
Represents a Shaman character card.
Shaman(int, int) - Constructor for class it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Shaman
Creates a Shaman character card with the specified era and icon value.
Shaman(int, int, int) - Constructor for class it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Shaman
Creates a Shaman character card with the specified era, icon value, and minimum number of players.
Shaman(String, int, int) - Constructor for class it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Shaman
Creates a Shaman character card with the specified image id, era and icon value.
Shaman(String, int, int, int) - Constructor for class it.polimi.ingsw.gc14.Model.Cards.TribeCards.Characters.Shaman
Creates a Shaman character card with the specified image id, era, icon value, and minimum number of players.
SHAMAN - Enum constant in enum class it.polimi.ingsw.gc14.Model.Cards.TribeCards.CharacterType
Character card representing a Shaman.
SHAMANIC_RITUAL - Enum constant in enum class it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType
Event card representing the Shamanic Ritual.
ShamanicRitual - Class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events
When activated, rewards the player with the most shaman icons and penalizes the one with the fewest.
ShamanicRitual(int, int, int) - Constructor for class it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.ShamanicRitual
Creates a new ShamanicRitual event card.
ShamanicRitual(String, int, int, int) - Constructor for class it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.ShamanicRitual
Creates a new ShamanicRitual event card.
shamans - Variable in class it.polimi.ingsw.gc14.Model.Player
The current Shaman cards in the player's deck.
showError(ErrorType) - Method in class it.polimi.ingsw.gc14.View.GUI.LoginFXMLController
Displays an error from an ErrorType constant in the login form label.
showError(ErrorType, String) - Method in class it.polimi.ingsw.gc14.View.GUI.GUI
Displays an error on the JavaFX application thread.
showError(ErrorType, String) - Method in interface it.polimi.ingsw.gc14.View.IView
Displays an error message to the user.
showError(ErrorType, String) - Method in class it.polimi.ingsw.gc14.View.TUI.TUI
Shows an error message combined with the current board in one display call, so only one printAbove is issued and the prompt is redrawn correctly.
showError(String) - Method in class it.polimi.ingsw.gc14.View.GUI.LoginFXMLController
Displays an arbitrary error message in the login form label.
showPopup() - Method in class it.polimi.ingsw.gc14.View.GUI.MainFXMLController
Centers the popup over the current window and makes it visible.
showSuccess(String) - Method in class it.polimi.ingsw.gc14.View.GUI.LoginFXMLController
Displays a success message in green in the login form label.
sideBySide(List, List, int) - Static method in class it.polimi.ingsw.gc14.View.TUI.AsciiTable
Places two pre-rendered text blocks side by side, separated by a gap.
SILENCE_THRESHOLD_MS - Static variable in class it.polimi.ingsw.gc14.Network.NetworkConfig
Milliseconds of silence before a client is considered disconnected.
size - Variable in class it.polimi.ingsw.gc14.View.GUI.FireParticleSystem.Particle
Visual radius of the particle's core circle.
size() - Method in class it.polimi.ingsw.gc14.LimitedMap
 
SKIP_TURN - Enum constant in enum class it.polimi.ingsw.gc14.Network.EventType
Event used to skip the current turn or optional action.
skipBtn - Variable in class it.polimi.ingsw.gc14.View.GUI.MainFXMLController
Button that sends a skip-turn command.
skipTurn() - Method in class it.polimi.ingsw.gc14.Controller.ClientController
Requests to skip the current turn.
skipTurn(Player) - Method in class it.polimi.ingsw.gc14.Model.Game
Skips the turn for the specified player when no drawable cards are available.
skipTurn(String) - Method in class it.polimi.ingsw.gc14.Controller.GameController
Skips the card drawing action for the specified player.
skipTurn(String) - Method in interface it.polimi.ingsw.gc14.Network.IClient
Requests to skip the current player's optional action.
skipTurn(String) - Method in class it.polimi.ingsw.gc14.Network.RMI.Client.RMIClient
Requests to skip the turn.
skipTurn(String) - Method in interface it.polimi.ingsw.gc14.Network.RMI.Common.IGameServer
Requests to skip the current player's optional action.
skipTurn(String) - Method in class it.polimi.ingsw.gc14.Network.RMI.Server.RMIServer
Requests to skip the turn.
skipTurn(String) - Method in class it.polimi.ingsw.gc14.Network.TCP.Client.TCPClient
Requests to skip drawing turn.
SkipTurn - Class in it.polimi.ingsw.gc14.Network.NetworkEvents
Network event used to skip the current player's optional card action.
SkipTurn(String) - Constructor for class it.polimi.ingsw.gc14.Network.NetworkEvents.SkipTurn
Class constructor.
sl - Variable in enum class it.polimi.ingsw.gc14.View.TUI.BorderStyle
Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
sl() - Method in enum class it.polimi.ingsw.gc14.View.TUI.BorderStyle
 
slot - Variable in class it.polimi.ingsw.gc14.Model.GamePackage.CurrentState
The current slot associated with the game state.
Slot - Class in it.polimi.ingsw.gc14.Model
Represents a slot with a specific identifier and associated values for upper cards, lower cards, food, and minimum number of players.
Slot(char) - Constructor for class it.polimi.ingsw.gc14.Model.Slot
Creates a slot with the specified identifier.
SLOT_CHOICE - Enum constant in enum class it.polimi.ingsw.gc14.Model.GamePackage.GameStages
Stage in which players select their action slots.
SLOT_CHOICE - Enum constant in enum class it.polimi.ingsw.gc14.Network.EventType
Event used to submit a player's slot choice.
slotChoice(int) - Method in class it.polimi.ingsw.gc14.Controller.ClientController
Requests the selection of a slot by the specified player.
slotChoice(String, int) - Method in class it.polimi.ingsw.gc14.Controller.GameController
Attempts to perform the slot choice action for the specified player at the specified position.
slotChoice(String, int) - Method in interface it.polimi.ingsw.gc14.Network.IClient
Requests to assign the specified player to a slot.
slotChoice(String, int) - Method in class it.polimi.ingsw.gc14.Network.RMI.Client.RMIClient
Used to perform the slot choice action for the specified player at the specified position.
slotChoice(String, int) - Method in interface it.polimi.ingsw.gc14.Network.RMI.Common.IGameServer
Requests to assign the specified player to a slot.
slotChoice(String, int) - Method in class it.polimi.ingsw.gc14.Network.RMI.Server.RMIServer
Used to perform the slot choice action for the specified player at the specified position.
slotChoice(String, int) - Method in class it.polimi.ingsw.gc14.Network.TCP.Client.TCPClient
Used to perform the slot choice action for the specified player at the specified position.
SlotChoice - Class in it.polimi.ingsw.gc14.Network.NetworkEvents
NetworkEvent to select a slot where to place the player totem.
SlotChoice(String, int) - Constructor for class it.polimi.ingsw.gc14.Network.NetworkEvents.SlotChoice
Class constructor.
slotChoiceByIndex(Player, int) - Method in class it.polimi.ingsw.gc14.Model.Game
Attempts to assign the slot at the specified index to the specified player.
slotId - Variable in class it.polimi.ingsw.gc14.Model.Slot
The identifier of this slot.
slotList - Variable in class it.polimi.ingsw.gc14.Model.GamePackage.Board
slotList contains the ordered list of slots (tiles).
slotMap - Variable in class it.polimi.ingsw.gc14.Model.Game
The mapping between slots and the players assigned to them.
slotPlayerMap - Variable in class it.polimi.ingsw.gc14.Model.MiniModel
Map associating each occupied slot with the corresponding player.
slotPlayerMap - Variable in class it.polimi.ingsw.gc14.Network.NetworkEvent
Map associating each occupied slot with the corresponding player.
socket - Variable in class it.polimi.ingsw.gc14.Network.TCP.Server.HeartbeatHandler
Dedicated socket used solely for heartbeat ping/pong exchange.
socketReceive - Variable in class it.polimi.ingsw.gc14.Network.TCP.Client.TCPClient
Input stream used receive objects from the server
socketSend - Variable in class it.polimi.ingsw.gc14.Network.TCP.Client.TCPClient
Output stream used to send objects to the server
socketTCP - Variable in class it.polimi.ingsw.gc14.Network.TCP.Server.TCPServer
Main server socket used to accept client connections.
SPAWN_INTERVAL_NS - Static variable in class it.polimi.ingsw.gc14.View.GUI.FireParticleSystem
Minimum nanoseconds between particle spawn batches.
spawnParticle(double, double) - Method in class it.polimi.ingsw.gc14.View.GUI.FireParticleSystem
Creates a new particle starting near one of the four screen corners.
sr - Variable in enum class it.polimi.ingsw.gc14.View.TUI.BorderStyle
Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
sr() - Method in enum class it.polimi.ingsw.gc14.View.TUI.BorderStyle
 
standingPlayers - Variable in class it.polimi.ingsw.gc14.Model.MiniModel
Final standing of the players at the end of the game.
start() - Method in class it.polimi.ingsw.gc14.ClientLauncherTUI
Starts the TUI client.
start() - Method in class it.polimi.ingsw.gc14.Network.RMI.Server.RMIHeartbeat
Called by RMIServer whenever it starts tracking this player.
start() - Method in class it.polimi.ingsw.gc14.Network.RMI.Server.RMIServer
Starts the RMI server and binds it to the configured registry.
start() - Method in class it.polimi.ingsw.gc14.Network.TCP.Server.TCPServer
Starts the TCP server and begins accepting client connections.
start() - Method in class it.polimi.ingsw.gc14.View.GUI.FireParticleSystem
Starts the animation timer.
start(Stage) - Method in class it.polimi.ingsw.gc14.ClientLauncherGUI.GUIApp
 
start(Stage) - Method in class it.polimi.ingsw.gc14.View.GUI.GUI
JavaFX entry point: loads all FXML scenes, wires up controllers, configures fullscreen behavior, and shows the login scene.
startForfeitTimerIfNeeded(NetworkEvent, Game) - Method in class it.polimi.ingsw.gc14.GameEventProcessor
Schedules the 60-second forfeit timer if a disconnection has left exactly one player online.
startHeartbeat() - Method in class it.polimi.ingsw.gc14.Network.RMI.Client.RMIClient
Starts sending periodic pings to the server.
startWatchdog() - Method in class it.polimi.ingsw.gc14.Network.TCP.Server.HeartbeatHandler
Starts the periodic watchdog task that detects heartbeat timeouts.
startWatchdog(String) - Method in class it.polimi.ingsw.gc14.Network.RMI.Server.RMIServer
Creates and starts an RMIHeartbeat for the specified player.
STEPS_PER_FRAME - Static variable in class it.polimi.ingsw.gc14.View.GUI.FireParticleSystem
Physics update steps applied per rendered frame (multiplies effective speed).
stub - Variable in class it.polimi.ingsw.gc14.Network.RMI.Client.RMIClient
Remote stub obtained from the RMI registry after a successful connection.
Sustenance - Class in it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events
Represents a Sustenance event card.
Sustenance(int, int) - Constructor for class it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.Sustenance
Creates a Sustenance event card with the specified era and prestige debt value.
Sustenance(String, int, int) - Constructor for class it.polimi.ingsw.gc14.Model.Cards.TribeCards.Events.Sustenance
Creates a Sustenance event card with the specified image id, era and prestige debt value.
SUSTENANCE - Enum constant in enum class it.polimi.ingsw.gc14.Model.Cards.TribeCards.EventType
Event card representing Sustenance.
switchProtocol() - Method in class it.polimi.ingsw.gc14.View.GUI.LoginFXMLController
Toggles the selected protocol between RMI and TCP, animating the toggle thumb and updating label styles.
sx - Variable in enum class it.polimi.ingsw.gc14.View.TUI.BorderStyle
Corner (tl/tr/bl/br), line (h/v), outer junction (ml/mr/mt/mb/x), and separator junction (sl/sr/sx) characters.
sx() - Method in enum class it.polimi.ingsw.gc14.View.TUI.BorderStyle
 
A B C D E F G H I J K L M N O P Q R S T U V W X Y 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form