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