def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     self.recallInvasion = False
     self.waitingOnStatus = False
     self.index = None
     self.currentTask = ''
     self.sendHello()
Esempio n. 2
0
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     self.recallInvasion = False
     self.waitingOnStatus = False
     self.index = None
     self.currentTask = ''
     self.sendHello()
Esempio n. 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'))
Esempio n. 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'))
Esempio n. 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])
Esempio n. 11
0
 def announceGenerate(self):
     assert self.notify.debugCall()
     DistributedObjectGlobalAI.announceGenerate(self)
     SettingsMgrBase.announceGenerate(self)
     self.sendUpdate('requestAllChangedSettings', [])
Esempio n. 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])
Esempio n. 14
0
 def announceGenerate(self):
     DistributedObjectGlobalAI.announceGenerate(self)
     self.sendUpdateToUD('addChatManager', [self.doId])
Esempio n. 15
0
    def __init__(self, air):
        DistributedObjectGlobalAI.__init__(self, air)

        self.inventories = {}
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
     self.msgChannels = {}
Esempio n. 17
0
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
     self.holiday = 0
Esempio n. 18
0
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
     self.air = air
Esempio n. 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)
Esempio n. 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])
Esempio n. 23
0
 def __init__(self, cr):
     DistributedObjectGlobalAI.__init__(self, cr)
     self.doNotListenToChannel = True
Esempio n. 24
0
 def __init__(self, air):
     DistributedObjectGlobalAI.__init__(self, air)
Esempio n. 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')
Esempio n. 28
0
 def delete(self):
     assert self.notify.debugCall()
     SettingsMgrBase.delete(self)
     DistributedObjectGlobalAI.delete(self)