Пример #1
0
    def __init__(self, mover_args, spinner_args, shooter_args, target):
        """mover_args, spinner_args, and shooter_args are tuples of arguments
        target is the player's sprite (the sprite to fire toward)
        """

        Manager.__init__(self)
        
        self.mover_args = mover_args
        self.spinner_args = spinner_args
        self.shooter_args = shooter_args
        
        self.target = target
        
        self.mover_state = MovingBase(self, *self.mover_args)
        self.change_state(self.mover_state)
Пример #2
0
    def __init__(self, mover_args, spinner_args, shooter_args, target):
        """mover_args, spinner_args, and shooter_args are tuples of arguments
        target is the player's sprite (the sprite to fire toward)
        """

        Manager.__init__(self)

        self.mover_args = mover_args
        self.spinner_args = spinner_args
        self.shooter_args = shooter_args

        self.target = target

        self.mover_state = MovingBase(self, *self.mover_args)
        self.change_state(self.mover_state)
Пример #3
0
    def __init__(self, deactivated_args, standby_args, firing_args, target):
        """*_args are tuples of arguments; see corresponding classes' __init__()
        target is the player's sprite (the sprite to follow on standby)
        """
        
        Manager.__init__(self)

        self.deactivated_args = deactivated_args
        self.standby_args = standby_args
        self.firing_args = firing_args
        
        self.target = target
        
        self.start_deactivated()

        self.update_sprite_attributes()
Пример #4
0
    def __init__(self, deactivated_args, standby_args, firing_args, target):
        """*_args are tuples of arguments; see corresponding classes' __init__()
        target is the player's sprite (the sprite to follow on standby)
        """

        Manager.__init__(self)

        self.deactivated_args = deactivated_args
        self.standby_args = standby_args
        self.firing_args = firing_args

        self.target = target

        self.start_deactivated()

        self.update_sprite_attributes()