Uses of Annotation Interface
it.polimi.ingsw.communication.sugar_framework.message_processing.SugarMessageHandler
Packages that use SugarMessageHandler
Package
Description
-
Uses of SugarMessageHandler in it.polimi.ingsw.client.game_client_and_cli
Methods in it.polimi.ingsw.client.game_client_and_cli with annotations of type SugarMessageHandlerModifier and TypeMethodDescriptionvoidGameClient.base(SugarMessage message) voidGameClient.chatMsg(SugarMessage message) voidGameClient.GameOverMsg(GameOverMsg message) voidGameClient.gamesUpdateMsg(GamesUpdateMsg message) voidvoidvoidvoidGameClient.peerUPIMessage(SugarMessage message) voidGameClient.updateClientMsg(UpdateClientMsg message) -
Uses of SugarMessageHandler in it.polimi.ingsw.server.controller.auth_controller
Methods in it.polimi.ingsw.server.controller.auth_controller with annotations of type SugarMessageHandlerModifier and TypeMethodDescriptionAuthController.base(SugarMessage message, Peer peer) AuthController.loginMsg(SugarMessage message, Peer peer) AuthController.signUpMsg(SugarMessage message, Peer peer) -
Uses of SugarMessageHandler in it.polimi.ingsw.server.controller.game_controller
Methods in it.polimi.ingsw.server.controller.game_controller with annotations of type SugarMessageHandler -
Uses of SugarMessageHandler in it.polimi.ingsw.server.controller.game_state_controller
Methods in it.polimi.ingsw.server.controller.game_state_controller with annotations of type SugarMessageHandlerModifier and TypeMethodDescriptionvoidCommunicationController.base(SugarMessage message, Peer peer) ExpertCommunicationController.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. -
Uses of SugarMessageHandler in it.polimi.ingsw.server.controller.games_manager
Methods in it.polimi.ingsw.server.controller.games_manager with annotations of type SugarMessageHandlerModifier and TypeMethodDescriptionGamesManager.base(SugarMessage sugarMessage, Peer peer) 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 participantsGamesManager.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.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)