Пример #1
0
 def __init__(self, nickname):
     Hero.__init__(self,
                   nickname,
                   ad=40,
                   power=5,
                   agility=30,
                   ip=300,
                   hp=100,
                   mp=5000)
Пример #2
0
   def __init__(self):
      #super is a builtin python function that represents the parent class of
      #this object (parent class = Creature here). This makes a monster inside  
      #the parent class of creature, with all the properties of creature. 

      Monster.__init__(self)
      Hero.__init__(self)
      
      self.weapon2 = None
Пример #3
0
 def __init__(self, nickname):
     Hero.__init__(self,
                   nickname,
                   ad=150,
                   power=100,
                   agility=150,
                   ip=1,
                   hp=500,
                   mp=10)
Пример #4
0
 def __init__(self, nickname):
     Hero.__init__(self,
                   nickname,
                   ad=200,
                   power=20,
                   agility=150,
                   ip=30,
                   hp=200,
                   mp=20)
Пример #5
0
 def __init__(self, color, screen):
     Hero.__init__(self, color, screen)
     self.dmg = randint(1, 7)
     self.hp = randint(1, 8)
Пример #6
0
 def __init__(self):
     Hero.__init__(self)
     self.name = '吉安娜'
     self.power = Firebalt()
Пример #7
0
 def __init__(self):
     Hero.__init__(self)
     self.name = '加尔鲁什'
     self.power = ArmorUp()
Пример #8
0
	def __init__(self):
		Monster.__init__(self)
		Hero.__init__(self)

		self.second_weapon = "none"
Пример #9
0
 def __init__(self):
    #passing the memory reference of self and calling monster initiation
    Monster.__init__(self)
    #passing the memory ref of self and calling hero initiation 
    Hero.__init__(self)
Пример #10
0
 def __init__(self):
     Hero.__init__(self, pygame.transform.scale(pygame.image.load("assets/dragon/dragon.png").convert_alpha(), (AGRAN_DR[0], AGRAN_DR[1])), POS_INIT_D)
Пример #11
0
 def __init__(self):
     Hero.__init__(self, pygame.transform.scale(pygame.image.load("assets/mage/anim/run/0.png").convert_alpha(), (AGRAN_M[0], AGRAN_M[1])), POS_INIT_M)