Esempio n. 1
0
 def addFactory(self):
     self.ic[1] = (RobotFactory, dict)
     KBEngine.addBots(1, 1, 0)
Esempio n. 2
0
 def addBots(self, c, count, data):
     last_id = next(reversed(self.ic), 0)
     self.ic[last_id + count] = (self.typeMap[c], data)
     t = min(1,
             settings.Robot.totalTime / (count / settings.Robot.tickCount))
     KBEngine.addBots(count, settings.Robot.tickCount, t)