Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
R
- read() - Method in class it.polimi.ingsw.eriantys.server.ClientConnection
-
Continuously checks for new messages being sent by the client through the connection socket's input stream and handles them according to the game phase, disconnecting the client if an I/O error occurs or if the client is unresponsive to ping messages.
- receiveCloudSelection() - Method in class it.polimi.ingsw.eriantys.controller.Game
-
Advances to the step of the turn when the current player can select a cloud tile.
- receiveMotherNatureMovement() - Method in class it.polimi.ingsw.eriantys.controller.Game
-
Advances to the step of the turn when the current player can move Mother Nature.
- reconnect(String) - Method in class it.polimi.ingsw.eriantys.controller.Game
-
Handles the reconnection of the specified player, notifying the rest of the players about the reconnection, resuming the game if necessary and broadcasting an update about the state of the game.
- reconnect(String, int, String, ClientConnection) - Method in class it.polimi.ingsw.eriantys.server.Server
-
Handles a user reconnection by processing a
Reconnect
communication item. - Reconnect - Class in it.polimi.ingsw.eriantys.messages.client
-
A
ConnectionMessage
sent by a client in order to request the server to reconnect to a lobby. - Reconnect(String, int, String) - Constructor for class it.polimi.ingsw.eriantys.messages.client.Reconnect
- ReconnectionUpdate - Class in it.polimi.ingsw.eriantys.messages.server
-
A message of type
ConnectionUpdate
sent by the server in order to broadcast a reconnection event. - ReconnectionUpdate(String, int, boolean) - Constructor for class it.polimi.ingsw.eriantys.messages.server.ReconnectionUpdate
- RED - Enum constant in enum class it.polimi.ingsw.eriantys.model.Color
- refillClouds() - Method in class it.polimi.ingsw.eriantys.model.Board
-
Refills the cloud tiles by taking the necessary amount of students from the
bag
. - refillFrom(StudentContainer) - Method in class it.polimi.ingsw.eriantys.model.StudentContainer
-
Refills
this
to its maximum capacity by picking random students fromsource
. - Refused - Class in it.polimi.ingsw.eriantys.messages.server
-
A
Message
sent by the server in order to communicate the refusal of the associated client request. - Refused(String) - Constructor for class it.polimi.ingsw.eriantys.messages.server.Refused
- RefusedReconnect - Class in it.polimi.ingsw.eriantys.messages.server
- RefusedReconnect(String) - Constructor for class it.polimi.ingsw.eriantys.messages.server.RefusedReconnect
- refuseRequest(GameMessage, String) - Method in class it.polimi.ingsw.eriantys.controller.Game
-
Responds to a
GameMessage
sent by a client with aRefused
message with the specified detail string. - remainingCapacity(Color) - Method in class it.polimi.ingsw.eriantys.model.Bag
-
Returns the remaining capacity of the container for the specified
Color
, an integer between 0 andBag.MAX_STUDENTS_PER_COLOR
, or-1
ifcolor
isnull
. - remainingCapacity(Color) - Method in class it.polimi.ingsw.eriantys.model.DiningRoom
-
Returns the remaining capacity of the container for the specified
Color
, an integer between 0 andDiningRoom.MAX_STUDENTS_PER_COLOR
, or-1
ifcolor
isnull
. - remainingCapacity(Color) - Method in class it.polimi.ingsw.eriantys.model.StudentContainer
-
Returns the container's remaining capacity for the specified
Color
, an integer between 0 andStudentContainer.MAX_STUDENTS_PER_COLOR
, or -1 ifcolor
isnull
. - removePlayer(String) - Method in class it.polimi.ingsw.eriantys.controller.Game
-
If the specified username is not in the game returns
false
, otherwise removes the username from the players and returnstrue
. - removeReconnectSettings() - Method in class it.polimi.ingsw.eriantys.client.Client
-
Removes the reconnection settings.
- resolve(IslandGroup) - Method in class it.polimi.ingsw.eriantys.model.GameManager
-
Sets the specified
IslandGroup
's controller to the player with the most influence on the island. - returnTile(int) - Method in class it.polimi.ingsw.eriantys.model.characters.HerbGranny
-
Method called when a no-entry tile is removed from an island to put it back on this card.
- returnTower() - Method in class it.polimi.ingsw.eriantys.model.Player
- returnTower() - Method in class it.polimi.ingsw.eriantys.model.SchoolBoard
-
If this
SchoolBoard
has less than the maximum number of towers prior to this method's invocation, increases the number of towers by 1 and returnstrue
, otherwise returnsfalse
. - roundBorders(ImageView, double) - Method in class it.polimi.ingsw.eriantys.client.gui.controllers.Controller
-
A helper method to round borders of an image.
- run() - Method in class it.polimi.ingsw.eriantys.client.cli.CommandLineInterface
-
Starts the loop reading user inputs and handling commands.
- run() - Method in class it.polimi.ingsw.eriantys.client.Client
-
Starts the user interface thread and then loops to receive and handle messages from the server.
- run() - Method in class it.polimi.ingsw.eriantys.client.gui.GraphicalUserInterface
-
Launches the JavaFX
Application
. - run() - Method in class it.polimi.ingsw.eriantys.server.Server
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form