Class: Wizard

Inherits:
Mobs
  • Object
show all
Defined in:
lib/mobs.rb

Instance Attribute Summary

Attributes inherited from Mobs

#agi, #armor, #coin, #cur_hp, #cur_mana, #dmg, #dodge, #hp, #int, #lvl, #mana, #name, #str, #xp

Instance Method Summary collapse

Constructor Details

#initialize(str = 8, agi = 10, int = 16, dmg = 4, armor = 4, hp = 4, cur_hp = 4, dodge = 5, mana = 16, cur_mana = 16, xp = 0, lvl = 1, coin = 0, name = "Wizard") ⇒ Wizard

Returns a new instance of Wizard.



36
37
38
# File 'lib/mobs.rb', line 36

def initialize(str=8, agi=10, int=16, dmg=4, armor=4, hp=4, cur_hp=4, dodge=5, mana=16, cur_mana=16, xp=0, lvl=1, coin=0, name="Wizard")
  super(str,agi,int,dmg,armor,hp,cur_hp,dodge,mana,cur_mana,xp,lvl,coin,name)
end