Class: Skeleton
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
-
#initialize(str = 12, agi = 12, int = 8, dmg = 6, armor = 6, hp = 10, cur_hp = 10, dodge = 5, mana = 0, cur_mana = 0, xp = 300, lvl = 1, coin = 4, name = "Skeleton") ⇒ Skeleton
constructor
A new instance of Skeleton.
Constructor Details
#initialize(str = 12, agi = 12, int = 8, dmg = 6, armor = 6, hp = 10, cur_hp = 10, dodge = 5, mana = 0, cur_mana = 0, xp = 300, lvl = 1, coin = 4, name = "Skeleton") ⇒ Skeleton
Returns a new instance of Skeleton.
70 71 72 |
# File 'lib/mobs.rb', line 70 def initialize(str=12, agi=12, int=8, dmg=6, armor=6, hp=10, cur_hp=10, dodge=5, mana=0, cur_mana=0, xp=300, lvl=1, coin=4, name="Skeleton") super(str,agi,int,dmg,armor,hp,cur_hp,dodge,mana,cur_mana,xp,lvl,coin,name) end |