Class: Gemwarrior::Tent
- Defined in:
- lib/gemwarrior/entities/items/tent.rb
Instance Attribute Summary
Attributes inherited from Item
#atk_hi, #atk_lo, #equippable, #equipped, #reuse, #takeable, #useable
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize ⇒ Tent
constructor
A new instance of Tent.
- #use(player = nil) ⇒ Object
Methods inherited from Item
Methods inherited from Entity
Constructor Details
#initialize ⇒ Tent
Returns a new instance of Tent.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/gemwarrior/entities/items/tent.rb', line 8 def initialize self.name = 'tent' self.description = 'A magical, two-room suite pops up when you flick this otherwise folded piece of canvas just right, perfect for a night\'s rest.' self.atk_lo = nil self.atk_hi = nil self.takeable = true self.useable = true self.equippable = false self.equipped = false end |
Instance Method Details
#use(player = nil) ⇒ Object
19 20 21 |
# File 'lib/gemwarrior/entities/items/tent.rb', line 19 def use(player = nil) {:type => 'action', :data => 'rest'} end |