Ejemplo n.º 1
0
 def create_entity(self, ship: Ship, hardpoint: WeaponPoint,
                   target_zone: Hitzone, hit_effect: int):
     active_turn().register_entity(
         TurboBeamEffect(ship, hardpoint, target_zone.aiming_point,
                         hit_effect))
Ejemplo n.º 2
0
 def update(self, dt):
     self.duration -= dt
     if self.duration < 0:
         active_turn().remove_entity(self)
Ejemplo n.º 3
0
 def kill(self):
     active_turn().remove_entity(self)
Ejemplo n.º 4
0
 def __init__(self):
     active_turn().register_entity(self)
Ejemplo n.º 5
0
def empty_plan():
    return Plan(active_turn())