def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     self.recallInvasion = False
     self.waitingOnStatus = False
     self.index = None
     self.currentTask = ''
     self.sendHello()
Example #2
0
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     self.recallInvasion = False
     self.waitingOnStatus = False
     self.index = None
     self.currentTask = ''
     self.sendHello()
Example #3
0
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
     self.chatMode2channel = {
         1: OtpDoGlobals.OTP_MOD_CHANNEL,
         2: OtpDoGlobals.OTP_ADMIN_CHANNEL,
         3: OtpDoGlobals.OTP_SYSADMIN_CHANNEL,
     }
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     self.air.netMessenger.accept('shardStatus', self, self.handleShardStatus)
     self.recallInvasion = False
     self.waitingOnStatus = False
     self.index = None
     self.currentTask = ''
     self.sendHello()
    def announceGenerate(self):
        DistributedObjectGlobalAI.announceGenerate(self)
        if not MANAGER_DOID:
            self.notify.warning('A manager DoId is not defined!')
            return

        self.uberdogUp = False
        self.sendUpdate('hello', [MANAGER_DOID])
        taskMgr.doMethodLater(HEARTBEAT_INTERVAL * 2, self.reportUdLost, self.uniqueName('noResponseTask'))
Example #6
0
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     self.air.netMessenger.accept('shardStatus', self,
                                  self.handleShardStatus)
     self.recallInvasion = False
     self.waitingOnStatus = False
     self.index = None
     self.currentTask = ''
     self.sendHello()
    def announceGenerate(self):
        DistributedObjectGlobalAI.announceGenerate(self)
        if not MANAGER_DOID:
            self.notify.warning('A manager DoId is not defined!')
            return

        self.uberdogUp = False
        self.sendUpdate('hello', [MANAGER_DOID])
        taskMgr.doMethodLater(HEARTBEAT_INTERVAL * 2, self.reportUdLost,
                              self.uniqueName('noResponseTask'))
Example #8
0
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
     self.chatMode2channel = {
         1: OtpDoGlobals.OTP_MOD_CHANNEL,
         2: OtpDoGlobals.OTP_ADMIN_CHANNEL,
         3: OtpDoGlobals.OTP_SYSADMIN_CHANNEL,
     }
     self.air = air
     self.accept('requestToonAccess', self.getToonAccess)
     self.accept('warningUpdate', self.updateWarnings)
     self.accept('requestOffenses', self.sendAvatarOffenses)
     self.accept('sendSystemMessage', self.sendSystemMessage)
     self.accept('chatBan', self.banAvatar)
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
     self.chatMode2channel = {
         1: OtpDoGlobals.OTP_MOD_CHANNEL,
         2: OtpDoGlobals.OTP_ADMIN_CHANNEL,
         3: OtpDoGlobals.OTP_SYSADMIN_CHANNEL,
     }
     self.air = air
     self.accept('requestToonAccess', self.getToonAccess)
     self.accept('warningUpdate', self.updateWarnings)
     self.accept('requestOffenses', self.sendAvatarOffenses)
     self.accept('sendSystemMessage', self.sendSystemMessage)
     self.accept('chatBan', self.banAvatar)
     self.accountId = 0
     self.domain = str(ConfigVariableString('ws-domain', 'localhost'))
     self.key = str(ConfigVariableString('ws-key', 'secretkey'))
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     self.sendUpdate('lobbyManagerAIHello', [simbase.air.lobbyManager.doId])
Example #11
0
 def announceGenerate(self):
     assert self.notify.debugCall()
     DistributedObjectGlobalAI.announceGenerate(self)
     SettingsMgrBase.announceGenerate(self)
     self.sendUpdate('requestAllChangedSettings', [])
Example #12
0
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
     self.latestIssueStr = ''
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     # Inform the UD that we as an AI have started up, and tell him the doId of our partymanager, so they can talk
     self.sendUpdate('partyManagerAIHello', [simbase.air.partyManager.doId])
Example #14
0
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     self.sendUpdateToUD('addChatManager', [self.doId])
Example #15
0
    def __init__(self, air):
        DistributedObjectGlobalAI.__init__(self, air)

        self.inventories = {}
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
     self.msgChannels = {}
Example #17
0
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
     self.holiday = 0
Example #18
0
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
     self.air = air
Example #19
0
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     self.sendUpdate('lobbyManagerAIHello', [simbase.air.lobbyManager.doId])
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     # Inform the UD that we as an AI have started up, and tell him the doId of our partymanager, so they can talk
     self.uberdogUp = False
     self.sendUpdate('partyManagerAIHello', [simbase.air.partyManager.doId])
     taskMgr.doMethodLater(5, self.reportUdLost, 'noResponseTask')
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
Example #22
0
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     # Inform the UD that we as an AI have started up, and tell him the doId of our partymanager, so they can talk
     self.sendUpdate('partyManagerAIHello', [simbase.air.partyManager.doId])
Example #23
0
 def __init__(self, cr):
     DistributedObjectGlobalAI.__init__(self, cr)
     self.doNotListenToChannel = True
Example #24
0
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
Example #25
0
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     # Inform the UD that we as an AI have started up
     self.uberdogUp = False
     self.sendUpdate('partyManagerAIHello', [simbase.air.partyManager.doId])
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     # Inform the UD that we as an AI have started up, and tell him the doId of our partymanager, so they can talk
     self.uberdogUp = False
     self.sendUpdate('partyManagerAIHello', [simbase.air.partyManager.doId])
     taskMgr.doMethodLater(5, self.reportUdLost, 'noResponseTask')
Example #28
0
 def delete(self):
     assert self.notify.debugCall()
     SettingsMgrBase.delete(self)
     DistributedObjectGlobalAI.delete(self)