Class: Gemwarrior::Map

Inherits:
Item show all
Defined in:
lib/gemwarrior/entities/items/map.rb

Instance Attribute Summary

Attributes inherited from Item

#atk_hi, #atk_lo, #equippable, #equipped, #reuse, #takeable, #useable

Attributes inherited from Entity

#description, #name

Instance Method Summary collapse

Methods inherited from Item

#describe

Methods inherited from Entity

#status

Constructor Details

#initializeMap

Returns a new instance of Map.



8
9
10
11
12
13
14
15
16
17
# File 'lib/gemwarrior/entities/items/map.rb', line 8

def initialize
  self.name         = 'map'
  self.description  = 'The land of Jool is contained on this piece of canvas, in a useful, if not very detailed, manner.'
  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
22
23
# File 'lib/gemwarrior/entities/items/map.rb', line 19

def use(player = nil)
  puts 'You unfold the piece of worn canvas, and study the markings upon it.'

  {:type => 'action', :data => 'map'}
end