from gamedata.objects.base import BaseObject class FightManager(BaseObject): def __init__(self,game): super().__init__(0,0,game) def step(self): self.game.globals["players"] = self.game.gameloop.findname("Player") self.game.globals["hitpose"] = False # Manage hitpose game-wise for player in self.game.globals["players"]: if player.hitpose: self.game.globals["hitpose"] = True break def draw(self): pass