Class: Gemwarrior::Apple
- Defined in:
- lib/gemwarrior/entities/items/apple.rb
Instance Attribute Summary
Attributes inherited from Item
#atk_hi, #atk_lo, #equippable, #equipped, #reuse, #takeable, #use, #useable
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize ⇒ Apple
constructor
A new instance of Apple.
Methods inherited from Item
Methods inherited from Entity
Constructor Details
#initialize ⇒ Apple
Returns a new instance of Apple.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/gemwarrior/entities/items/apple.rb', line 8 def initialize self.name = 'apple' self.description = 'Reddish-orangeish in color, this fruit looks sweet, but it is heavy and feels more like a rock you would sooner not bite into.' self.atk_lo = nil self.atk_hi = nil self.takeable = true self.useable = false self.equippable = false self.equipped = false end |