Class: Gemwarrior::Pig
- Defined in:
- lib/gemwarrior/entities/creatures/pig.rb
Instance Attribute Summary
Attributes inherited from Creature
#atk_hi, #atk_lo, #defense, #dexterity, #face, #hands, #hp_cur, #hp_max, #inventory, #level, #mood, #rox, #speak, #xp
Attributes inherited from Entity
#consumable, #describe, #describe_detailed, #description, #display_shopping_cart, #equippable, #equipped, #name, #name_display, #number_of_uses, #takeable, #talkable, #useable, #useable_battle, #used, #used_again
Instance Method Summary collapse
-
#initialize ⇒ Pig
constructor
A new instance of Pig.
- #use(world) ⇒ Object
Methods inherited from Creature
Methods inherited from Entity
Constructor Details
#initialize ⇒ Pig
Returns a new instance of Pig.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/gemwarrior/entities/creatures/pig.rb', line 8 def initialize super self.name = 'pig' self.name_display = 'Pig' self.description = 'Dirty, eating slop, but still kind of cute. Yep, this is a pig.' self.face = 'messy' self.hands = 'muddy' self.mood = 'restless' end |
Instance Method Details
#use(world) ⇒ Object
19 20 21 22 |
# File 'lib/gemwarrior/entities/creatures/pig.rb', line 19 def use(world) puts '>> "Oink."' { type: nil, data: nil } end |