Uses of Class
it.polimi.ingsw.communication.sugar_framework.messages.SugarMessage
Packages that use SugarMessage
Package
Description
-
Uses of SugarMessage in it.polimi.ingsw.client.game_client_and_cli
Methods in it.polimi.ingsw.client.game_client_and_cli with parameters of type SugarMessageModifier and TypeMethodDescriptionvoidGameClient.base(SugarMessage message) voidGameClient.chatMsg(SugarMessage message) voidGameClient.peerUPIMessage(SugarMessage message) private voidGameClient.send(SugarMessage message) private voidGameClient.sendAndHandleDisconnection(SugarMessage message) -
Uses of SugarMessage in it.polimi.ingsw.communication.sugar_framework
Methods in it.polimi.ingsw.communication.sugar_framework that return SugarMessageMethods in it.polimi.ingsw.communication.sugar_framework with parameters of type SugarMessageModifier and TypeMethodDescription(package private) voidSugarServer.heartbeatHandler(SugarMessage message) Removes the message with that id from the heartbeatsToWait listvoidSugarServer.multicastToRoom(UUID roomId, SugarMessage message) Sends the message to any peer in the specified room (if it exists)protected abstract voidSugarServer.onPeerMessage(Peer peer, SugarMessage message) The server calls this function any time it receives a message from a peer.voidSugarClient.send(SugarMessage message) voidSugarServer.send(SugarMessage msg, Peer peer) Delivers the message to the peerstatic StringSerDes.serialize(SugarMessage message) -
Uses of SugarMessage in it.polimi.ingsw.communication.sugar_framework.exceptions
Constructors in it.polimi.ingsw.communication.sugar_framework.exceptions with parameters of type SugarMessage -
Uses of SugarMessage in it.polimi.ingsw.communication.sugar_framework.message_processing
Methods in it.polimi.ingsw.communication.sugar_framework.message_processing that return SugarMessageModifier and TypeMethodDescriptionfinal SugarMessageSugarMessageProcessor.process(SugarMessage message, Peer sender) Executes all @SugarMessageHandler(s) annotated methods in this class that match this method's signature, if none is found, executes the "base()" method (if it exists)final SugarMessageSugarMessageProcessor.processFromLowerLayers(SugarMessage message, Peer receiver) Methods in it.polimi.ingsw.communication.sugar_framework.message_processing with parameters of type SugarMessageModifier and TypeMethodDescriptionprotected voidSugarMessageProcessor.drop(SugarMessage msg, String reason) final voidSugarMessageProcessor.process(SugarMessage message) Executes all @SugarMessageHandler(s) annotated methods in this class that match this method's signature, if none is found, executes the "base()" method (if it exists)final SugarMessageSugarMessageProcessor.process(SugarMessage message, Peer sender) Executes all @SugarMessageHandler(s) annotated methods in this class that match this method's signature, if none is found, executes the "base()" method (if it exists)final SugarMessageSugarMessageProcessor.processFromLowerLayers(SugarMessage message, Peer receiver) -
Uses of SugarMessage in it.polimi.ingsw.communication.sugar_framework.messages
Subclasses of SugarMessage in it.polimi.ingsw.communication.sugar_framework.messagesMethods in it.polimi.ingsw.communication.sugar_framework.messages that return SugarMessage -
Uses of SugarMessage in it.polimi.ingsw.server.controller.auth_controller
Methods in it.polimi.ingsw.server.controller.auth_controller that return SugarMessageModifier and TypeMethodDescriptionAuthController.base(SugarMessage message, Peer peer) AuthController.loginMsg(SugarMessage message, Peer peer) AuthController.signUpMsg(SugarMessage message, Peer peer) Methods in it.polimi.ingsw.server.controller.auth_controller with parameters of type SugarMessageModifier and TypeMethodDescriptionAuthController.base(SugarMessage message, Peer peer) AuthController.loginMsg(SugarMessage message, Peer peer) AuthController.signUpMsg(SugarMessage message, Peer peer) -
Uses of SugarMessage in it.polimi.ingsw.server.controller.auth_controller.messages
Subclasses of SugarMessage in it.polimi.ingsw.server.controller.auth_controller.messages -
Uses of SugarMessage in it.polimi.ingsw.server.controller.game_controller
Methods in it.polimi.ingsw.server.controller.game_controller that return SugarMessageMethods in it.polimi.ingsw.server.controller.game_controller with parameters of type SugarMessage -
Uses of SugarMessage in it.polimi.ingsw.server.controller.game_state_controller
Methods in it.polimi.ingsw.server.controller.game_state_controller that return SugarMessageModifier and TypeMethodDescriptionExpertCommunicationController.characterIndexArchipelagoMsg(CharacterIndexArchipelagoMsg message, Peer peer) This is the handler of the messages for the characters with ID 3 and 5.ExpertCommunicationController.characterIndexColorArchipelagoMsg(CharacterIndexColorArchipelagoMsg message, Peer peer) This is the handler of the messages for the characters with ID 1.ExpertCommunicationController.characterIndexColorListsMsg(CharacterIndexColorListsMsg message, Peer peer) This is the handler of the messages for the characters with ID 1.ExpertCommunicationController.characterIndexColorMsg(CharacterIndexColorMsg message, Peer peer) This is the handler of the messages for the characters with ID 9, 11 and 12.ExpertCommunicationController.characterIndexMsg(CharacterIndexMsg message, Peer peer) This is the handler of the messages for the characters with ID 2,4,6 and 8.CommunicationController.endTurnMsg(EndTurnMsg message, Peer peer) This method is the handler for the EndTurnMsgExpertCommunicationController.endTurnMsg(EndTurnMsg message, Peer peer) This is the handler of the messages for the characters with ID 1.CommunicationController.grabStudentsFromCloudMsg(GrabStudentsFromCloudMsg message, Peer peer) This method is the handler for the GrabStudentsFromCloudMsgCommunicationController.moveMotherNatureMsg(MoveMotherNatureMsg message, Peer peer) This method is the handler for the MoveMotherNatureMsgCommunicationController.moveStudentFromEntranceToArchipelagoMsg(MoveStudentFromEntranceToArchipelagoMsg message, Peer peer) This method is the handler for the MoveStudentFromEntranceToArchipelagoMsgCommunicationController.moveStudentFromEntranceToDiningRoomMsg(MoveStudentFromEntranceToDiningRoomMsg message, Peer peer) This method is the handler fot the MoveStudentFromEntranceToDiningRoomMsgCommunicationController.playCardMsg(PlayCardMsg message, Peer peer) This method is the handler for the PlayCardMsgCommunicationController.rollbackMsg(RollbackMsg message, Peer peer) This method is the handler for the RollBackMsgExpertCommunicationController.rollbackMsg(RollbackMsg message, Peer peer) This is the handler of the messages for the characters with ID 1.Methods in it.polimi.ingsw.server.controller.game_state_controller with parameters of type SugarMessageModifier and TypeMethodDescriptionvoidCommunicationController.base(SugarMessage message, Peer peer) -
Uses of SugarMessage in it.polimi.ingsw.server.controller.game_state_controller.messages
Modifier and TypeClassDescriptionclassclassclassclassclassclassclassclassThis is a special message that is not directly sent to the client, but it is instead intercepted by game controller to notify to the clients the end of the gameclassclassclassclassclassclassclassclassclassclass -
Uses of SugarMessage in it.polimi.ingsw.server.controller.games_manager
Methods in it.polimi.ingsw.server.controller.games_manager that return SugarMessageModifier and TypeMethodDescriptionGamesManager.base(SugarMessage sugarMessage, Peer peer) GamesManager.getGamesMsg(SugarMessage message, Peer peer) Returns the games where the user is playingGamesManager.joinMatchMakingMsg(SugarMessage message, Peer peer) Join MatchMaking Controller If a user is not in the matchmaking, it'll be added to the matchmaking list it does nothing if a user is already in the matchmaking, it will be added to the matchmaking with the newest configuration otherwiseGamesManager.reJoinMsg(SugarMessage sugarMessage, Peer peer) Methods in it.polimi.ingsw.server.controller.games_manager with parameters of type SugarMessageModifier and TypeMethodDescriptionGamesManager.base(SugarMessage sugarMessage, Peer peer) voidGamesManager.baseLowerLayers(SugarMessage message, Peer receiver) voidGamesManager.chatMsg(SugarMessage message, Peer peer) Sends a chat message to other players It can send to another player in the same game, otherwise can multicast the message to the team, or to all the game's participantsprivate voidGamesManager.gameLogicMulticast(GameController gameController, SugarMessage message) Multicast the message to all the players connected to the gameGamesManager.getGamesMsg(SugarMessage message, Peer peer) Returns the games where the user is playingGamesManager.joinMatchMakingMsg(SugarMessage message, Peer peer) Join MatchMaking Controller If a user is not in the matchmaking, it'll be added to the matchmaking list it does nothing if a user is already in the matchmaking, it will be added to the matchmaking with the newest configuration otherwisevoidGamesManager.okAndUpdateMsg(SugarMessage message, Peer receiver) voidGamesManager.peerDisconnectedFromGameMsg(SugarMessage message, Peer peer) If the users disconnects, it waits 30 seconds If the user reconnects to the server, the game will not be closed, will be closed otherwiseGamesManager.reJoinMsg(SugarMessage sugarMessage, Peer peer) private voidGamesManager.send(SugarMessage message, Peer peer) -
Uses of SugarMessage in it.polimi.ingsw.server.controller.games_manager.messages
Subclasses of SugarMessage in it.polimi.ingsw.server.controller.games_manager.messagesModifier and TypeClassDescriptionclassclassclassclassclassclassclass -
Uses of SugarMessage in it.polimi.ingsw.server.server_logic
Methods in it.polimi.ingsw.server.server_logic with parameters of type SugarMessageModifier and TypeMethodDescriptionprotected voidGameServer.onPeerMessage(Peer peer, SugarMessage message)