Uses of Class
it.polimi.ingsw.Server.Controller.GameController
-
Uses of GameController in it.polimi.ingsw.Server
Modifier and TypeFieldDescriptionprivate static Map<ClientStatusInterface,
GameController> RMIServer.clientStatusToController
private static Map<GameController,
Object> RMIServer.controllerToCommuter
private static final Map<GameController,
Object> ServerManager.controllerToCommuter
private static Map<GameController,
Object> SocketServer.controllerToCommuter
private static Map<GameController,
Object> RMIServer.controllerToLobbyCommuter
private static final Map<GameController,
Object> ServerManager.controllerToLobbyCommuter
private static Map<GameController,
Object> SocketServer.controllerToLobbyCommuter
private static Map<GameController,
Semaphore> RMIServer.controllerToSemaphore
private static final Map<GameController,
Semaphore> ServerManager.controllerToSemaphore
private static Map<GameController,
Semaphore> SocketServer.controllerToSemaphore
private static Map<String,
GameController> RMIServer.identifierToController
private static final Map<String,
GameController> ServerManager.identifierToController
private static Map<String,
GameController> SocketServer.identifierToController
private static final Map<PrintWriter,
GameController> SocketServer.printWriterToGameController
private static final Map<Socket,
GameController> SocketServer.socketToGameController
Modifier and TypeMethodDescriptionprivate GameController
RMIServer.loginCheck
(ClientStatusInterface csi, String clientIdentifier, String clientNickname) Game's lobby admission and re-enter strategyModifier and TypeMethodDescriptionprivate RMIServer.AdmissionResult
RMIServer.admission
(ClientStatusInterface csi, String clientNickname, GameController controller) Admission phase implementationprivate static boolean
SocketServer.admissionResult
(GameController gc, String nickname, PrintWriter out, int numofPlayers, com.google.gson.Gson gson) this method manages admission phasestatic void
RMIServer.endGameHandler
(GameController gc, boolean invokedBySocket) Implements End Game strategy, informing all clients (RMI and Socket ones) to disconnect ad deallocates Model Objects from global structuresstatic void
SocketServer.endGameHandler
(GameController gc, boolean invokedbyRMI, boolean invokedAtKATimeout) Implements End Game strategy, informing all clients (Socket and RMI ones) to disconnect ad deallocates Model Objects from global structuresprivate static void
SocketServer.makeMove
(GameController gc, PrintWriter out, com.google.gson.Gson gson, AtomicBoolean clientsTurn, ProducerConsumerLock lineLockers, AtomicReference<String> l, com.google.gson.Gson gson_move) this method manages the move phaseprivate static void
RMIServer.sendScoreBoard
(ClientStatusInterface csi, GameController controller) Sets Final Scoreboard and informs client of the availabilityprivate void
RMIServer.turnManagement
(ClientStatusInterface csi, String clientIdentifier, String clientNickname, GameController controller, RMIServer.AdmissionResult admissionResult) Turn Management implementationprivate static void
SocketServer.updateClientStatus
(GameController gc, String nickname, PrintWriter out, com.google.gson.Gson gson) this method sends Board, Shelf and cards at the end of every turnModifierConstructorDescriptionSocketKeepAlive
(Socket socket, GameController gc) Naive Application-level KeepAlive implementationModifierConstructorDescriptionRMILifeline
(ClientStatusInterface csi, Map<ClientStatusInterface, GameController> clientStatusToController) Naive Application-level KeepAlive implementationRMIServer
(Map<String, GameController> identifierToController, Map<GameController, Semaphore> controllerToSemaphore, Map<GameController, Object> controllerToCommuter, Map<GameController, Object> controllerToLobbyCommuter) RMIServer constructor, managed by the Server Manager by defaultSocketServer
(Map<String, GameController> identifierToController, Map<GameController, Semaphore> controllerToSemaphore, Map<GameController, Object> controllerToCommuter, Map<GameController, Object> controllerToLobbyCommuter) SocketServer constructor, managed by the Server Manager by default -
Uses of GameController in it.polimi.ingsw.Server.Controller
Modifier and TypeFieldDescriptionprivate final GameController
MoveIntermediate.gc
Game's controllerModifier and TypeFieldDescriptionprivate final Map<ClientStatusInterface,
GameController> RMIController.clientStatusToController
private final Map<ClientStatusInterface,
GameController> StatusIntermediate.clientStatusToController
private final Map<String,
GameController> RMIController.identifierToController
Associates a Game's identifier to its controllerModifier and TypeMethodDescriptionGameController.refreshEntities()
Objects refresh following a game reloaded from a persistency fileModifierConstructorDescriptionMoveIntermediate
(Board b, Shelf s, GameController gc, Player p) Move Intermediate constructorModifierConstructorDescriptionRMIController
(Map<String, GameController> identifierToController, Map<ClientStatusInterface, GameController> clientStatusToController) RMI Controller constructorStatusIntermediate
(RMIServer server, Map<ClientStatusInterface, GameController> clientStatusToController) Status Intermediate Constructor