示例#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
文件: dragon.py 项目: Athanaze/EZML
 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
文件: mage.py 项目: Athanaze/EZML
 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)