Class: Mobs
- Inherits:
-
Object
- Object
- Mobs
- Defined in:
- lib/mobs.rb
Instance Attribute Summary collapse
-
#agi ⇒ Object
Returns the value of attribute agi.
-
#armor ⇒ Object
Returns the value of attribute armor.
-
#buff_drink ⇒ Object
Returns the value of attribute buff_drink.
-
#buff_food ⇒ Object
Returns the value of attribute buff_food.
-
#coin ⇒ Object
Returns the value of attribute coin.
-
#cur_hp ⇒ Object
Returns the value of attribute cur_hp.
-
#cur_mana ⇒ Object
Returns the value of attribute cur_mana.
-
#dmg ⇒ Object
Returns the value of attribute dmg.
-
#dodge ⇒ Object
Returns the value of attribute dodge.
-
#hp ⇒ Object
Returns the value of attribute hp.
-
#int ⇒ Object
Returns the value of attribute int.
-
#lvl ⇒ Object
Returns the value of attribute lvl.
-
#mana ⇒ Object
Returns the value of attribute mana.
-
#name ⇒ Object
Returns the value of attribute name.
-
#str ⇒ Object
Returns the value of attribute str.
-
#xp ⇒ Object
Returns the value of attribute xp.
Instance Method Summary collapse
-
#initialize(str, agi, int, dmg, armor, hp, cur_hp, dodge, mana, cur_mana, xp, lvl, coin, name = "MOB") ⇒ Mobs
constructor
A new instance of Mobs.
Constructor Details
#initialize(str, agi, int, dmg, armor, hp, cur_hp, dodge, mana, cur_mana, xp, lvl, coin, name = "MOB") ⇒ Mobs
Returns a new instance of Mobs.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/mobs.rb', line 5 def initialize(str, agi, int, dmg, armor, hp, cur_hp, dodge, mana, cur_mana, xp, lvl, coin, name="MOB") @str = str @agi = agi @int = int @dmg = dmg @armor = armor @hp = hp @cur_hp = cur_hp @dodge = dodge @mana = mana @cur_mana = cur_mana @xp = xp @lvl = lvl @coin = coin @name = name end |
Instance Attribute Details
#agi ⇒ Object
Returns the value of attribute agi.
3 4 5 |
# File 'lib/mobs.rb', line 3 def agi @agi end |
#armor ⇒ Object
Returns the value of attribute armor.
3 4 5 |
# File 'lib/mobs.rb', line 3 def armor @armor end |
#buff_drink ⇒ Object
Returns the value of attribute buff_drink.
3 4 5 |
# File 'lib/mobs.rb', line 3 def buff_drink @buff_drink end |
#buff_food ⇒ Object
Returns the value of attribute buff_food.
3 4 5 |
# File 'lib/mobs.rb', line 3 def buff_food @buff_food end |
#coin ⇒ Object
Returns the value of attribute coin.
3 4 5 |
# File 'lib/mobs.rb', line 3 def coin @coin end |
#cur_hp ⇒ Object
Returns the value of attribute cur_hp.
3 4 5 |
# File 'lib/mobs.rb', line 3 def cur_hp @cur_hp end |
#cur_mana ⇒ Object
Returns the value of attribute cur_mana.
3 4 5 |
# File 'lib/mobs.rb', line 3 def cur_mana @cur_mana end |
#dmg ⇒ Object
Returns the value of attribute dmg.
3 4 5 |
# File 'lib/mobs.rb', line 3 def dmg @dmg end |
#dodge ⇒ Object
Returns the value of attribute dodge.
3 4 5 |
# File 'lib/mobs.rb', line 3 def dodge @dodge end |
#hp ⇒ Object
Returns the value of attribute hp.
3 4 5 |
# File 'lib/mobs.rb', line 3 def hp @hp end |
#int ⇒ Object
Returns the value of attribute int.
3 4 5 |
# File 'lib/mobs.rb', line 3 def int @int end |
#lvl ⇒ Object
Returns the value of attribute lvl.
3 4 5 |
# File 'lib/mobs.rb', line 3 def lvl @lvl end |
#mana ⇒ Object
Returns the value of attribute mana.
3 4 5 |
# File 'lib/mobs.rb', line 3 def mana @mana end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/mobs.rb', line 3 def name @name end |
#str ⇒ Object
Returns the value of attribute str.
3 4 5 |
# File 'lib/mobs.rb', line 3 def str @str end |
#xp ⇒ Object
Returns the value of attribute xp.
3 4 5 |
# File 'lib/mobs.rb', line 3 def xp @xp end |