示例#1
0
 def generate(self):
     self.notify.info('generate')
     self.notify.info(
         'start factory %s %s creation, frame=%s' %
         (self.lawOfficeId, self.doId, globalClock.getFrameCount()))
     self.layout = LawOfficeLayout.LawOfficeLayout(self.lawOfficeId)
     self.startFloor()
示例#2
0
    def generate(self):
        self.notify.info('generate')
        self.notify.info('start factory %s %s creation, frame=%s' % (self.lawOfficeId, self.doId, globalClock.getFrameCount()))
        DistributedObjectAI.generate(self)
        self.layout = LawOfficeLayout.LawOfficeLayout(self.lawOfficeId)
        self.exitEvents = { }
        for avId in self.avIds:
            self.exitEvents[avId] = simbase.air.getAvatarExitEvent(avId)
            self.accept(self.exitEvents[avId], Functor(self.handleAvatarExit, avId))

        self.startOffice()