# Index

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

## C

Cabin - Class in it.polimi.ingsw.is25am31.model.components
  Represents a cabin component in the game, capable of holding human crew members or alien inhabitants with specific life support requirements.
Cabin(int, String, Map<Side, Connector>, Side, boolean, boolean) - Constructor for class it.polimi.ingsw.is25am31.model.components.Cabin
  Constructs a cabin with specified modules and orientation
calculateFirePower() - Method in class it.polimi.ingsw.is25am31.model.components.Cannon
  Calculates the fire power this turn based on cannon type and orientation Single-power cannons produce 1.0 if facing FRONT connector, else 0.5
calculateFirePower() - Method in class it.polimi.ingsw.is25am31.model.components.Component
calculateThrust() - Method in class it.polimi.ingsw.is25am31.model.components.Component
calculateThrust() - Method in class it.polimi.ingsw.is25am31.model.components.Engine
  Calculates thrust produced by the engine this turn Single engines only thrust if connector points back; multi engines thrust when active, then deactivate
canContinuePlaying(Player) - Method in class it.polimi.ingsw.is25am31.model.Game
  Checks if player can continue racing
Cannon - Class in it.polimi.ingsw.is25am31.model.components
  Represents a Cannon component with configurable power and orientation.
Cannon(int, String, Map<Side, Connector>, Side, int) - Constructor for class it.polimi.ingsw.is25am31.model.components.Cannon
  Constructs a cannon with specified power and orientation
CANNON - Enum constant in enum class it.polimi.ingsw.is25am31.model.components.Connector
CannonHit - Class in it.polimi.ingsw.is25am31.model.cards
  The `CannonHit` class represents a cannon hit, which is a game element characterized by specific side and size.
CannonHit() - Constructor for class it.polimi.ingsw.is25am31.model.cards.CannonHit
CannonHit(Side, Size) - Constructor for class it.polimi.ingsw.is25am31.model.cards.CannonHit
Card - Class in it.polimi.ingsw.is25am31.model.cards
  Represents a generic card used in the game.
Card(int, int, String, boolean) - Constructor for class it.polimi.ingsw.is25am31.model.cards.Card
  the constructor is called by the Jackson library, and the values are read from the JSON file
CardFactory - Class in it.polimi.ingsw.is25am31.model.cards
  `CardFactory` is responsible for managing and handling a collection of cards used in the game.
CardFactory() - Constructor for class it.polimi.ingsw.is25am31.model.cards.CardFactory
  Reads the JSON file with cards info, puts it into a stream and then creates a list of all the Cards
CardManagerController - Class in it.polimi.ingsw.is25am31.view.gui
  Controller for managing card display and player interactions during card resolution phases.
CardManagerController() - Constructor for class it.polimi.ingsw.is25am31.view.gui.CardManagerController
CardViewAssemble - Class in it.polimi.ingsw.is25am31.view.gui
  Controller for displaying a sub-deck of cards during the assembly phase.
CardViewAssemble() - Constructor for class it.polimi.ingsw.is25am31.view.gui.CardViewAssemble
CargoHold - Class in it.polimi.ingsw.is25am31.model.components
  Represents a cargo hold component capable of storing goods with specific constraints.
CargoHold(int, String, Map<Side, Connector>, Side, int, boolean) - Constructor for class it.polimi.ingsw.is25am31.model.components.CargoHold
  Constructs a cargo hold with specified properties
center(String, int) - Static method in class it.polimi.ingsw.is25am31.model.components.ShieldGenerator
  Centers a string within a specified width by adding spaces on both sides.
changePosition(int) - Method in class it.polimi.ingsw.is25am31.model.player.Rocket
  Moves the rocket by a relative offset, handling collisions with other rockets
changeRocketPosition(Player, int) - Method in class it.polimi.ingsw.is25am31.model.Game
  Changes a player's rocket position with collision avoidance logic
checkDeck() - Method in class it.polimi.ingsw.is25am31.model.Game
  Checks if deck is empty (ends flight phase)
checkPlayersConnection(int) - Method in class it.polimi.ingsw.is25am31.controller.Controller
checkPlayersConnection(Controller) - Method in class it.polimi.ingsw.is25am31.controller.ControllerManager
  Continuously monitors player connections for a specific game controller.
clearComponent() - Method in class it.polimi.ingsw.is25am31.view.gui.SelectedTileController
  Clears the current component selection and resets the view.
clearComponentImage(int, int) - Method in class it.polimi.ingsw.is25am31.view.gui.Stage2Controller
  Clears the component image at the specified grid position.
clearPendingComponent() - Method in class it.polimi.ingsw.is25am31.view.gui.SelectedTileController
  Clears the pending component and resets the image view.
client - Variable in class it.polimi.ingsw.is25am31.network.ClientData
ClientData - Class in it.polimi.ingsw.is25am31.network
  Represents the client data within the system, managing the association between a client represented by a VirtualView and its corresponding player information.
ClientData(VirtualView) - Constructor for class it.polimi.ingsw.is25am31.network.ClientData
ClientModel - Class in it.polimi.ingsw.is25am31.view
  Manages the client-side model, handling game state, player data, and interactions with the UI and server.
ClientModel(UiRenderer, VirtualServer, VirtualView) - Constructor for class it.polimi.ingsw.is25am31.view.ClientModel
  Constructs a new ClientModel.
ClientServerCommand - Interface in it.polimi.ingsw.is25am31.network.socket.clientServerMessages
  Represents a command that can be sent from a client to the server.
ClientState - Enum Class in it.polimi.ingsw.is25am31.view
  Enumeration representing the different states a client can be in during the game.
closeAllStages() - Method in class it.polimi.ingsw.is25am31.view.gui.CloseStageManager
  Closes all managed stages that are currently showing.
closeClient() - Static method in class it.polimi.ingsw.is25am31.view.ClientModel
  Closes the client application after a short delay.
CloseStageManager - Class in it.polimi.ingsw.is25am31.view.gui
  Singleton manager for handling the closing of all application stages.
Color - Enum Class in it.polimi.ingsw.is25am31.model.components
  Enumeration representing the available colors in the game.
COMBATZONE - Enum constant in enum class it.polimi.ingsw.is25am31.model.cards.EffectType
CombatZoneCard - Class in it.polimi.ingsw.is25am31.model.cards
  Represents a specific card in the game that triggers the "Combat Zone" scenario.
CombatZoneCard(int, int, String, boolean, int, List<CannonHit>, int, int) - Constructor for class it.polimi.ingsw.is25am31.model.cards.CombatZoneCard
CommandHandler - Class in it.polimi.ingsw.is25am31.view.tui.input
  Handles the execution of commands received from the `CommandParser`.
CommandHandler(VirtualServer, ClientModel, UiRenderer) - Constructor for class it.polimi.ingsw.is25am31.view.tui.input.CommandHandler
CommandParser - Class in it.polimi.ingsw.is25am31.view.tui.input
  Parses user input commands and dispatches them to the appropriate handler.
CommandParser(VirtualServer, ClientModel, UiRenderer) - Constructor for class it.polimi.ingsw.is25am31.view.tui.input.CommandParser
completeAssembly(int) - Method in class it.polimi.ingsw.is25am31.model.Game
  Completes ship assembly and starts flight if all ready
Component - Class in it.polimi.ingsw.is25am31.model.components
  Represents a general component in the game, serving as the base class for various specialized components.
Component(int, String, Map<Side, Connector>, Side) - Constructor for class it.polimi.ingsw.is25am31.model.components.Component
  Constructor used by Json to deserialize component properties
connect(VirtualView) - Method in class it.polimi.ingsw.is25am31.network.rmi.server.RmiServer
  Handles a connection request
connect(VirtualView) - Method in class it.polimi.ingsw.is25am31.network.socket.client.SocketServerHandler
  This method is part of the `VirtualServer` interface but is not directly used in the current socket communication model for connecting.
connect(VirtualView) - Method in class it.polimi.ingsw.is25am31.network.socket.server.SocketServer
  Handles a connection request
connect(VirtualView) - Method in interface it.polimi.ingsw.is25am31.network.VirtualServer
  Connects a new client's virtual view to the server.
connect(VirtualView) - Method in class it.polimi.ingsw.is25am31.view.ClientModel
  Connects the client to the server and starts the UI.
connect(String, UiRenderer) - Static method in class it.polimi.ingsw.is25am31.network.rmi.client.RmiClient
  Establishes a connection to the RMI server.
connectionResponse(ConnectionResponse) - Method in class it.polimi.ingsw.is25am31.network.rmi.client.RmiClient
  Handles the response received after a connection attempt.
connectionResponse(ConnectionResponse) - Method in class it.polimi.ingsw.is25am31.network.socket.client.SocketClient
  Handles the response received after a connection attempt.
connectionResponse(ConnectionResponse) - Method in class it.polimi.ingsw.is25am31.network.socket.server.SocketClientHandler
  Sends a `ConnectionResponse` to the client after a connection attempt.
connectionResponse(ConnectionResponse) - Method in interface it.polimi.ingsw.is25am31.network.VirtualView
  Handles a connection response from the server, indicating the outcome of a connection attempt or a change in connection status.
connectionResponse(ConnectionResponse) - Method in class it.polimi.ingsw.is25am31.view.ClientModel
  Handles a connection response from the server.
ConnectionResponse - Enum Class in it.polimi.ingsw.is25am31.network
  Represents the possible responses to a connection attempt to a game.
ConnectionResponseCommand - Class in it.polimi.ingsw.is25am31.network.socket.serverClientMessages
  Represents a command sent from the server to the client as a response to a connection attempt.
ConnectionResponseCommand(ConnectionResponse) - Constructor for class it.polimi.ingsw.is25am31.network.socket.serverClientMessages.ConnectionResponseCommand
  Constructs a new `ConnectionResponseCommand`.
connectionTest() - Method in class it.polimi.ingsw.is25am31.network.rmi.client.RmiClient
  A method to test the connection.
connectionTest() - Method in class it.polimi.ingsw.is25am31.network.socket.client.SocketClient
  A method to test the connection.
connectionTest() - Method in class it.polimi.ingsw.is25am31.network.socket.server.SocketClientHandler
  Sends a ping command to the client to test connectivity.
connectionTest() - Method in interface it.polimi.ingsw.is25am31.network.VirtualView
  Performs a connection test.
connector - Variable in class it.polimi.ingsw.is25am31.model.components.Component
Connector - Enum Class in it.polimi.ingsw.is25am31.model.components
  Enumeration representing the different types of connectors available in the game.
connectToGame(int, UUID) - Method in class it.polimi.ingsw.is25am31.controller.ControllerManager
  Connects a client to an existing game by game number.
connectUUID(VirtualView) - Method in class it.polimi.ingsw.is25am31.controller.ControllerManager
  Registers a new client connection by generating a unique UUID and initializing the client Sets up the client's virtual view and sends initial connection messages
Context - Class in it.polimi.ingsw.is25am31.model.cards
  This class is used to make call to setCardContext and applyEffect uniform between all the specific card types.
Context(Map<String, Object>) - Constructor for class it.polimi.ingsw.is25am31.model.cards.Context
  Constructs a new `Context` object with the given parameters.
ContextValidator - Class in it.polimi.ingsw.is25am31.model.cards
  The `ContextValidator` class provides static methods to validate and manage the context of card and effect activations within the game.
ContextValidator() - Constructor for class it.polimi.ingsw.is25am31.model.cards.ContextValidator
Controller - Class in it.polimi.ingsw.is25am31.controller
  The Controller class manages player interactions, communication between clients and the server during the game, and some game logic.
Controller() - Constructor for class it.polimi.ingsw.is25am31.controller.Controller
  Constructs a new Controller.
ControllerManager - Class in it.polimi.ingsw.is25am31.controller
  The ControllerManager class handles the management of game controllers, client connections, managing the starting and closing of games.
ControllerManager() - Constructor for class it.polimi.ingsw.is25am31.controller.ControllerManager
controllerPing() - Method in class it.polimi.ingsw.is25am31.controller.Controller
CREATE_OR_JOIN - Enum constant in enum class it.polimi.ingsw.is25am31.network.UpdateMessage
createGame(UUID) - Method in class it.polimi.ingsw.is25am31.network.rmi.server.RmiServer
createGame(UUID) - Method in class it.polimi.ingsw.is25am31.network.socket.client.SocketServerHandler
  Sends a command to the server for a client to create a new game.
createGame(UUID) - Method in class it.polimi.ingsw.is25am31.network.socket.server.SocketServer
  Handles a request to create a new game.
createGame(UUID) - Method in interface it.polimi.ingsw.is25am31.network.VirtualServer
  Requests the server to create a new game instance.
CreateGameCommand - Class in it.polimi.ingsw.is25am31.network.socket.clientServerMessages
  Represents a command sent from a client to the server to request the creation of a new game.
CreateGameCommand(UUID) - Constructor for class it.polimi.ingsw.is25am31.network.socket.clientServerMessages.CreateGameCommand
  Constructs a new `CreateGameCommand`.
createNewGame(UUID) - Method in class it.polimi.ingsw.is25am31.controller.ControllerManager
  Creates a new game and assigns the specified client as the first player.
CREW_PLACING - Enum constant in enum class it.polimi.ingsw.is25am31.view.ClientState
crewPlacingPhase(Ship, Map<Integer, Integer>) - Method in class it.polimi.ingsw.is25am31.network.rmi.client.RmiClient
  Initiates the crew placing phase for a ship.
crewPlacingPhase(Ship, Map<Integer, Integer>) - Method in class it.polimi.ingsw.is25am31.network.socket.client.SocketClient
  Initiates the crew placing phase for a ship.
crewPlacingPhase(Ship, Map<Integer, Integer>) - Method in class it.polimi.ingsw.is25am31.network.socket.server.SocketClientHandler
  Notifies the client to start the crew placing phase, providing the ship and its positions.
crewPlacingPhase(Ship, Map<Integer, Integer>) - Method in interface it.polimi.ingsw.is25am31.network.VirtualView
  Starts the crew placing phase for the client, providing the client's updated ship and current rocket positions.
crewPlacingPhase(Ship, Map<Integer, Integer>) - Method in class it.polimi.ingsw.is25am31.view.ClientModel
  Initiates the crew placing phase.
CrewPlacingPhaseCommand - Class in it.polimi.ingsw.is25am31.network.socket.serverClientMessages
  Represents a command sent from the server to the client to start the crew placing phase.
CrewPlacingPhaseCommand(Ship, Map<Integer, Integer>) - Constructor for class it.polimi.ingsw.is25am31.network.socket.serverClientMessages.CrewPlacingPhaseCommand
  Constructs a new `CrewPlacingPhaseCommand`.
CrewSelectionController - Class in it.polimi.ingsw.is25am31.view.gui
  Controller for the crew selection phase of the game.
CrewSelectionController() - Constructor for class it.polimi.ingsw.is25am31.view.gui.CrewSelectionController
CurrentPhase - Class in it.polimi.ingsw.is25am31.model.gameboard
  The CurrentPhase class represents the current phase of a game.
CurrentPhase(Phase) - Constructor for class it.polimi.ingsw.is25am31.model.gameboard.CurrentPhase
  Constructs a new CurrentPhase with the specified initial phase.
currentPlanet - Variable in class it.polimi.ingsw.is25am31.model.cards.PlanetsCard
customCardPrintMyTurn(int) - Method in class it.polimi.ingsw.is25am31.view.gui.GuiRenderer
  Handles custom card print for the player's turn.
customCardPrintMyTurn(int) - Method in class it.polimi.ingsw.is25am31.view.tui.TuiRenderer
  Provides custom messages for the current player's turn.
customCardPrintMyTurn(int) - Method in interface it.polimi.ingsw.is25am31.view.UiRenderer
  Prints a custom message related to a card when it's the current player's turn.
customCardPrintNotMyTurn(String) - Method in class it.polimi.ingsw.is25am31.view.gui.GuiRenderer
  Handles custom card print when it's not the player's turn.
customCardPrintNotMyTurn(String) - Method in class it.polimi.ingsw.is25am31.view.tui.TuiRenderer
  Provides custom messages when it's not the current player's turn, specifically for cards where another player needs to perform an action.
customCardPrintNotMyTurn(String) - Method in interface it.polimi.ingsw.is25am31.view.UiRenderer
  Prints a custom message related to a card when it's not the current player's turn.

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