Class: Gemwarrior::Person

Inherits:
Creature show all
Defined in:
lib/gemwarrior/entities/person.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

Methods inherited from Creature

#describe, #describe_detailed

Methods inherited from Entity

#puts

Constructor Details

#initializePerson

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