Example #1
0
 def enterLoaded(self):
     DistCogdoLevelGameAI.enterLoaded(self)
     # create the cranes
     for i in range(self.MaxPlayers):
         crane = DistCogdoCraneAI(self.air, self, i)
         crane.generateWithRequired(self.zoneId)
         self._cranes[i] = crane
Example #2
0
 def enterLoaded(self):
     DistCogdoLevelGameAI.enterLoaded(self)
     # create the cranes
     self.scene = PM.NodePath('scene')
     cn = PM.CollisionNode('walls')
     cs = PM.CollisionSphere(0, 0, 0, 13)
     cn.addSolid(cs)
     cs = PM.CollisionInvSphere(0, 0, 0, 42)
     cn.addSolid(cs)
     self.attachNewNode(cn)
     for i in range(CogdoGameConsts.MaxPlayers):
         crane = DistCogdoCraneAI(self.air, self, i)
         crane.generateWithRequired(self.zoneId)
         self._cranes[i] = crane
     for i in range(len(self._moneyBags)):
         mBag = DistCogdoCraneMoneyBagAI(self.air, self, i)
         mBag.generateWithRequired(self.zoneId)
         self._moneyBags[i] = mBag
Example #3
0
 def announceGenerate(self):
     DistCogdoLevelGameAI.announceGenerate(self)
     self.finishEvent = self.uniqueName('CogdoCraneGameDone')
     self.gameOverEvent = self.uniqueName('CogdoCraneGameLose')
     for index in xrange(4):
         crane = DistCogdoCraneAI(self.air, self.doId)
         crane.setIndex(index)
         crane.generateWithRequired(self.zoneId)
         self.cranes.append(crane)
 def enterLoaded(self):
     DistCogdoLevelGameAI.enterLoaded(self)
     for i in xrange(self.MaxPlayers):
         crane = DistCogdoCraneAI(self.air, self, i)
         crane.generateWithRequired(self.zoneId)
         self._cranes[i] = crane