Class MessageDispatcher

java.lang.Object
marauroa.server.game.messagehandler.MessageDispatcher

public class MessageDispatcher extends Object
Dispatches messages to the appropriate handlers
Author:
hendrik
  • 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 - INetworkServerManager
      rpMan - RPServerManager
      playerContainer - PlayerEntryContainer
      stats - Statistics
      key - RSAKey
    • dispatchMessage

      public void dispatchMessage(Message msg)
      dispatches the message to the appropriate handler
      Parameters:
      msg -