def __init__(self, baseChannel, serverId):
     CogInvasionInternalRepository.__init__(
         self, baseChannel, serverId, ["astron/direct.dc", "astron/toon.dc"], dcSuffix="UD"
     )
     self.notify.setInfo(True)
     self.activeTokens = []
     self.parentMgr = ParentMgr()
Example #2
0
 def __init__(self, baseChannel, serverId):
     CogInvasionInternalRepository.__init__(
         self,
         baseChannel,
         serverId, ['phase_3/etc/direct.dc', 'phase_3/etc/toon.dc'],
         dcSuffix='UD')
     self.notify.setInfo(True)
     self.activeTokens = []
     self.parentMgr = ParentMgr()
     self.holiday = 0
 def __init__(self, baseChannel, stateServerChannel):
     CogInvasionInternalRepository.__init__(self, baseChannel, stateServerChannel, ['astron/direct.dc', 'astron/toon.dc'], dcSuffix='AI')
     self.notify.setInfo(True)
     self.district = None
     self.zoneAllocator = UniqueIdAllocator(CIGlobals.DynamicZonesBegin, CIGlobals.DynamicZonesEnd)
     self.zoneDataStore = AIZoneDataStore()
     self.hoods = {}
     self.dnaStoreMap = {}
     self.dnaDataMap = {}
     self.districtNameMgr = self.generateGlobalObject(DO_ID_DISTRICT_NAME_MANAGER, 'DistrictNameManager')
     return
Example #4
0
 def __init__(self, baseChannel, stateServerChannel):
     CogInvasionInternalRepository.__init__(
         self,
         baseChannel,
         stateServerChannel,
         ['phase_3/etc/direct.dc', 'phase_3/etc/toon.dc'],
         dcSuffix='AI')
     self.notify.setInfo(True)
     self.district = None
     #self.aiWorld = AIWorld(render) # Used for cogs
     self.zoneAllocator = UniqueIdAllocator(CIGlobals.DynamicZonesBegin,
                                            CIGlobals.DynamicZonesEnd)
     self.zoneDataStore = AIZoneDataStore()
     self.hoods = {}
     self.dnaStoreMap = {}
     self.dnaDataMap = {}
     self.districtNameMgr = self.generateGlobalObject(
         DO_ID_DISTRICT_NAME_MANAGER, 'DistrictNameManager')
 def handleDatagram(self, di):
     msgType = self.getMsgType()
     if msgType == STORE_LOGIN_TOKEN:
         self.__handleLoginToken(di)
     else:
         CogInvasionInternalRepository.handleDatagram(self, di)
Example #6
0
 def handleDatagram(self, di):
     msgType = self.getMsgType()
     if msgType == STORE_LOGIN_TOKEN:
         self.__handleLoginToken(di)
     else:
         CogInvasionInternalRepository.handleDatagram(self, di)