Beispiel #1
0
 def __init__(self, cr):
     DistCogdoGame.__init__(self, cr)
     self.game = CogdoMazeGame(self)
     self._numSuits = (0, 0, 0)
     if __debug__ and base.config.GetBool('schellgames-dev', True):
         self.accept('onCodeReload',
                     self._DistCogdoMazeGame__sgOnCodeReload)
Beispiel #2
0
    def enterLoaded(self):
        DistCogdoGame.enterLoaded(self)
        mazeFactory = self.createMazeFactory(self.createRandomNumGen())
        bossCode = None
        if self._numSuits[0] > 0:
            bossCode = ''
            for u in range(self._numSuits[0]):
                bossCode += '%X' % self.randomNumGen.randint(0, 15)

        self.game.load(mazeFactory, self._numSuits, bossCode)
    def enterLoaded(self):
        DistCogdoGame.enterLoaded(self)
        mazeFactory = self.createMazeFactory(self.createRandomNumGen())
        bossCode = None
        if self._numSuits[0] > 0:
            bossCode = ''
            for u in range(self._numSuits[0]):
                bossCode += '%X' % self.randomNumGen.randint(0, 15)

        self.game.load(mazeFactory, self._numSuits, bossCode)
Beispiel #4
0
 def enterGame(self):
     DistCogdoGame.enterGame(self)
     self.game.start()
Beispiel #5
0
 def enterIntro(self):
     DistCogdoGame.enterIntro(self, Globals.IntroDurationSeconds)
     self.game.startIntro()
Beispiel #6
0
 def enterVisible(self):
     DistCogdoGame.enterVisible(self)
     self.game.initPlayers()
     self.game.onstage()
Beispiel #7
0
 def exitGame(self):
     self.game.exit()
     DistCogdoGame.exitGame(self)
Beispiel #8
0
 def exitVisible(self):
     DistCogdoGame.exitVisible(self)
Beispiel #9
0
 def __init__(self, cr):
     DistCogdoGame.__init__(self, cr)
     if __debug__ and base.config.GetBool('schellgames-dev', True):
         self.accept('onCodeReload', self.__sgOnCodeReload)
     self.game = CogdoFlyingGame(self)
 def enterVisible(self):
     DistCogdoGame.enterVisible(self)
     self.game.onstage()
 def enterLoaded(self):
     DistCogdoGame.enterLoaded(self)
     self._remoteActionEventName = self.uniqueName('doAction')
     self.game.load()
     self.game.initPlayers()
 def setToonDisconnect(self, toonId):
     self.game.setToonDisconnect(toonId)
     DistCogdoGame.setToonDisconnect(self, toonId)
Beispiel #13
0
 def __init__(self, cr):
     DistCogdoGame.__init__(self, cr)
     self.game = CogdoFlyingGame(self)
 def __init__(self, cr):
     DistCogdoGame.__init__(self, cr)
     self.game = CogdoMazeGame(self)
     self._numSuits = (0, 0, 0)
 def __init__(self, cr):
     DistCogdoGame.__init__(self, cr)
     if __debug__ and config.GetBool('schellgames-dev', True):
         self.accept('onCodeReload', self.__sgOnCodeReload)
     self.game = CogdoFlyingGame(self)
Beispiel #16
0
 def enterFinish(self):
     DistCogdoGame.enterFinish(self)
     self.game.startFinish()
Beispiel #17
0
 def setToonSad(self, toonId):
     self.game.setToonSad(toonId)
     DistCogdoGame.setToonSad(self, toonId)
 def delete(self):
     del self.game
     DistCogdoGame.delete(self)
Beispiel #19
0
 def exitLoaded(self):
     self.ignoreAll()
     self.game.unload()
     DistCogdoGame.exitLoaded(self)
 def setToonSad(self, toonId):
     self.game.setToonSad(toonId)
     DistCogdoGame.setToonSad(self, toonId)
Beispiel #21
0
 def exitIntro(self):
     DistCogdoGame.exitIntro(self)
     self.game.endIntro()
     self.stashEntranceElevator()
 def __init__(self, cr):
     DistCogdoGame.__init__(self, cr)
     self.game = CogdoMazeGame(self)
     self._numSuits = (0, 0, 0)
Beispiel #23
0
 def exitFinish(self):
     self.game.endFinish()
     self.game.offstage()
     DistCogdoGame.exitFinish(self)
Beispiel #24
0
 def delete(self):
     del self.randomNumGen
     del self.game
     DistCogdoGame.delete(self)
Beispiel #25
0
 def exitLoaded(self):
     self.game.unload()
     self.ignoreAll()
     DistCogdoGame.exitLoaded(self)
Beispiel #26
0
 def setToonSad(self, toonId):
     DistCogdoGame.setToonSad(self, toonId)
     self.game.handleToonWentSad(toonId)
Beispiel #27
0
 def exitVisible(self):
     DistCogdoGame.exitVisible(self)
Beispiel #28
0
 def setToonDisconnect(self, toonId):
     DistCogdoGame.setToonDisconnect(self, toonId)
     self.game.handleToonDisconnected(toonId)
Beispiel #29
0
 def exitIntro(self):
     DistCogdoGame.exitIntro(self)
     self.game.endIntro()
     self.stashEntranceElevator()
Beispiel #30
0
 def generate(self):
     self.randomNumGen = self.createRandomNumGen()
     DistCogdoGame.generate(self)
Beispiel #31
0
 def exitGame(self):
     DistCogdoGame.exitGame(self)
     self.game.exit()
Beispiel #32
0
 def placeEntranceElev(self, elev):
     DistCogdoGame.placeEntranceElev(self, elev)
     self.game.placeEntranceElevator(elev)
Beispiel #33
0
 def exitFinish(self):
     DistCogdoGame.exitFinish(self)
     self.game.endFinish()
     self.game.offstage()
Beispiel #34
0
 def enterVisible(self):
     DistCogdoGame.enterVisible(self)
     self.game.initPlayers()
     self.game.onstage()
Beispiel #35
0
 def setToonDisconnect(self, toonId):
     self.game.setToonDisconnect(toonId)
     DistCogdoGame.setToonDisconnect(self, toonId)
Beispiel #36
0
 def __init__(self, cr):
     DistCogdoGame.__init__(self, cr)
     self.game = CogdoMazeGame(self)
     self._numSuits = (0, 0, 0)
     if __debug__ and base.config.GetBool('schellgames-dev', True):
         self.accept('onCodeReload', self.__sgOnCodeReload)
Beispiel #37
0
 def enterLoaded(self):
     DistCogdoGame.enterLoaded(self)
     self._remoteActionEventName = self.uniqueName('doAction')
     self.game.load()
     self.game.initPlayers()
Beispiel #38
0
 def delete(self):
     del self.randomNumGen
     del self.game
     DistCogdoGame.delete(self)
Beispiel #39
0
 def enterVisible(self):
     DistCogdoGame.enterVisible(self)
     self.game.onstage()
Beispiel #40
0
 def setToonSad(self, toonId):
     DistCogdoGame.setToonSad(self, toonId)
     self.game.handleToonWentSad(toonId)
Beispiel #41
0
 def enterIntro(self):
     DistCogdoGame.enterIntro(self, Globals.Gameplay.IntroDurationSeconds)
     self.game.startIntro()
Beispiel #42
0
 def setToonDisconnect(self, toonId):
     DistCogdoGame.setToonDisconnect(self, toonId)
     self.game.handleToonDisconnected(toonId)
Beispiel #43
0
 def enterGame(self):
     DistCogdoGame.enterGame(self)
     self.game.start()
Beispiel #44
0
 def generate(self):
     self.randomNumGen = self.createRandomNumGen()
     DistCogdoGame.generate(self)
Beispiel #45
0
 def enterFinish(self):
     DistCogdoGame.enterFinish(self)
     self.game.startFinish()
Beispiel #46
0
 def placeEntranceElev(self, elev):
     DistCogdoGame.placeEntranceElev(self, elev)
     self.game.placeEntranceElevator(elev)
Beispiel #47
0
 def delete(self):
     del self.game
     DistCogdoGame.delete(self)
Beispiel #48
0
 def delete(self):
     del self.randomNumGen
     del self.game
     taskMgr.remove(self.taskName('gameDone'))
     DistCogdoGame.delete(self)