예제 #1
0
 def __init__(self):
     super(BWProtoPlugin, self).__init__()
     self.__provider = BWChatProvider()
     self.__adminChat = chat_handlers.AdminChatCommandHandler(
         self.__provider)
     self.__adminChat.registerHandlers()
     self.__users = UsersHandler(self.__provider)
     self.__users.registerHandlers()
     self.__arenaChat = chat_handlers.ArenaChatHandler(
         self.__provider, self.__adminChat)
     self.__arenaChat.registerHandlers()
     self.__battleCmd = chat_handlers.BattleChatCommandHandler(
         self.__provider)
     self.__battleCmd.registerHandlers()
     self.__unitChat = chat_handlers.UnitChatHandler(
         self.__provider, self.__adminChat)
     self.__unitChat.registerHandlers()
     self.__clubChat = chat_handlers.ClubChatHandler(
         self.__provider, self.__adminChat)
     self.__clubChat.registerHandlers()
     self.__clubListener = None
     self.__voipProvider = VOIPChatProvider(self.__provider)
     self.__voipProvider.registerHandlers()
     self.__voipCtrl = VOIPChatController()
     self.__isConnected = False
     return
예제 #2
0
 def init(self):
     self.__provider = BWChatProvider()
     self.__adminChat = chat_handlers.AdminChatCommandHandler(self.__provider)
     self.__adminChat.registerHandlers()
     self.__users = UsersHandler(self.__provider)
     self.__users.registerHandlers()
     self.__arenaChat = chat_handlers.ArenaChatHandler(self.__provider, self.__adminChat)
     self.__arenaChat.registerHandlers()
     self.__battleCmd = chat_handlers.BattleChatCommandHandler(self.__provider)
     self.__battleCmd.registerHandlers()
     self.__unitChat = chat_handlers.UnitChatHandler(self.__provider, self.__adminChat)
     self.__unitChat.registerHandlers()
     self.__voipProvider = VOIPChatProvider(self.__provider)
     self.__voipProvider.registerHandlers()
     self.__voipCtrl = VOIPChatController()