Exemplo n.º 1
0
 def __init__(self, name, power):
     """
     @param name: The name of this weapon
     @param power: Amount of hitpoints this weapon will damage
     @summary: Initializes a balloon launcher
     """
     Weapon.__init__(self, name, power)
Exemplo n.º 2
0
    def __init__(self, name, power):
        """
        @param name: The name of this cannon
        @param power: Amount of hitpoints this weapon will damage
        @summary: Initializes a cannon
        """
        Weapon.__init__(self, name, power)

        # Set the aiming direction
        self.weaponAngle = 45
        self.ammo = 6 * 5

        self.image = load_image('crosshair.png')
        self.rect = self.image.get_rect()
Exemplo n.º 3
0
 def __init__(self, effects=None, name='Sword', damage=10):
     Weapon.__init__(self, name, damage, [effects])
     self._durability = 1
Exemplo n.º 4
0
 def __init__(self, name='Bow', damage=2, accuracy=10, effects=None):
     Weapon.__init__(self, name, damage, [effects])
     self.__accuracy = accuracy