Class MessageDispatcher
java.lang.Object
marauroa.server.game.messagehandler.MessageDispatcher
Dispatches messages to the appropriate handlers
- Author:
- hendrik
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispatchMessage(Message msg)
dispatches the message to the appropriate handlervoid
init(INetworkServerManager netMan, RPServerManager rpMan, PlayerEntryContainer playerContainer, Statistics stats, RSAKey key)
Initializes the MessageHandlers
-
Constructor Details
-
MessageDispatcher
public MessageDispatcher()creates a new MessageDispatcher
-
-
Method Details
-
init
public void init(INetworkServerManager netMan, RPServerManager rpMan, PlayerEntryContainer playerContainer, Statistics stats, RSAKey key)Initializes the MessageHandlers- Parameters:
netMan
- INetworkServerManagerrpMan
- RPServerManagerplayerContainer
- PlayerEntryContainerstats
- Statisticskey
- RSAKey
-
dispatchMessage
dispatches the message to the appropriate handler- Parameters:
msg
-
-