Exemplo n.º 1
0
 def born(self):
     HBGateway.born(self)
     self.requestActions("game")
     self.requestActions("weapon")
     self.requestActions("character")
     self.requestActions("world")
     self.requestActions("projectile")
Exemplo n.º 2
0
 def born(self):
     HBGateway.born(self)
     self.requestActions("game")
     self.requestActions("weapon")
     self.requestActions("character")
     self.requestActions("world")
     self.requestActions("projectile")
Exemplo n.º 3
0
 def start(self):
     HBGateway.start(self)
     if self._verbose: log.info("[*] Creating agents")
     self.addAgent(LogAgent(self, debug=self._debug))
     self.addAgent(Game(self, debug=self._debug))
     self.addAgent(World(self, debug=self._debug))
     self.addAgent(Character(self, 100, 1, debug=self._debug))
     self.addAgent(Character(self, -150, 2, debug=self._debug))
     self.addAgent(Weapon(self, debug=self._debug))
     self.addAgent(Projectile(self, debug=self._debug))
     self.sendBroadcastMessage(Message("start", ()), "game")
Exemplo n.º 4
0
 def start(self):
     HBGateway.start(self)
     if self._verbose: log.info("[*] Creating agents")
     self.addAgent(LogAgent(self, debug=self._debug))
     self.addAgent(Game(self, debug=self._debug))
     self.addAgent(World(self, debug=self._debug))
     self.addAgent(Character(self, 100, 1, debug=self._debug))
     self.addAgent(Character(self, -150, 2, debug=self._debug))
     self.addAgent(Weapon(self, debug=self._debug))
     self.addAgent(Projectile(self, debug=self._debug))
     self.sendBroadcastMessage(Message("start", ()), "game")
Exemplo n.º 5
0
 def __init__(self, protocol, presentation, manager, arg):
     HBGateway.__init__(self, protocol, presentation, manager, arg)
Exemplo n.º 6
0
 def __init__(self, protocol, presentation, manager, arg):
     HBGateway.__init__(self, protocol, presentation, manager, arg)