Class: Gemwarrior::Person
- Defined in:
- lib/gemwarrior/entities/person.rb
Direct Known Subclasses
ArenaMaster, DrunkMan, QueenRuby, Rockney, ShiftyWoman, ThinMan, WareHawker
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 ⇒ Person
constructor
A new instance of Person.
- #use(world) ⇒ Object
Methods inherited from Creature
Methods inherited from Entity
Constructor Details
#initialize ⇒ Person
Returns a new instance of Person.
8 9 10 11 12 13 14 |
# File 'lib/gemwarrior/entities/person.rb', line 8 def initialize super self.name = 'person.' self.name_display = Formatting::upstyle(name) self.description = 'It appears to be a person of some kind.' end |
Instance Method Details
#use(world) ⇒ Object
16 17 18 |
# File 'lib/gemwarrior/entities/person.rb', line 16 def use(world) 'That person does not seem to want to talk to you right now.' end |