Exemplo n.º 1
0
 def execute(self):
     world = Singleton(World)
     world.getTeam(self.originTeamId).characters[self.originCharacterId]._missileHit()
     if(self.hitEntity == 1):
         world.getTeam(self.hitTeamId).characters[self.hitCharacterId]._hitByMissile()
     elif(self.hitEntity == 2):
         world.getTeam(self.hitTeamId).characters[self.hitCharacterId]._mineHit()
     elif(self.hitEntity == 3):
         world.getTeam(self.hitTeamId).characters[self.hitCharacterId]._missileHit()
     
     if(self.backfire == 1):
         world.getTeam(self.originTeamId).characters[self.originCharacterId]._hitByMissile()
Exemplo n.º 2
0
 def execute(self):
     world = Singleton(World)
     world.getTeam(
         self.hitTeamId).characters[self.hitCharacterId]._hitByMine()
     world.getTeam(
         self.originTeamId).characters[self.originCharacterId]._mineHit()
Exemplo n.º 3
0
 def execute(self):
     world = Singleton(World)
     world.getTeam(
         self.teamId).characters[self.characterId]._updatePosition(
             self.position)