Class: Gemwarrior::Cow
- Defined in:
- lib/gemwarrior/entities/creatures/cow.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 ⇒ Cow
constructor
A new instance of Cow.
- #use(world) ⇒ Object
Methods inherited from Creature
Methods inherited from Entity
Constructor Details
#initialize ⇒ Cow
Returns a new instance of Cow.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/gemwarrior/entities/creatures/cow.rb', line 8 def initialize super self.name = 'cow' self.name_display = 'Cow' self.description = 'Grazing on some fake grass, unperturbed, this black and white herd animal looks bored.' self.face = 'blank' self.hands = 'stampy' self.mood = 'reserved' end |
Instance Method Details
#use(world) ⇒ Object
19 20 21 22 |
# File 'lib/gemwarrior/entities/creatures/cow.rb', line 19 def use(world) puts '>> "Moo."' { type: nil, data: nil } end |