Class: Gemwarrior::Hut
- Defined in:
- lib/gemwarrior/entities/items/hut.rb
Instance Attribute Summary
Attributes inherited from Item
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 ⇒ Hut
constructor
A new instance of Hut.
- #use(world) ⇒ Object
Methods inherited from Item
Methods inherited from Entity
Constructor Details
#initialize ⇒ Hut
Returns a new instance of Hut.
8 9 10 11 12 13 14 |
# File 'lib/gemwarrior/entities/items/hut.rb', line 8 def initialize super self.name = 'hut' self.name_display = 'Hut' self.description = 'A simple thatched hut, sitting in the middle of the plains. Nothing about it seems odd, except its existence among the otherwise featureless landscape.' end |
Instance Method Details
#use(world) ⇒ Object
16 17 18 19 20 |
# File 'lib/gemwarrior/entities/items/hut.rb', line 16 def use(world) puts 'You peer inside, but it is completely vacant at the moment, leaving you marginally disappointed.' { type: nil, data: nil } end |