Class: Gemwarrior::IronHelmet

Inherits:
Armor show all
Defined in:
lib/gemwarrior/entities/armor/iron_helmet.rb

Instance Attribute Summary

Attributes inherited from Armor

#defense

Attributes inherited from Item

#is_armor, #is_weapon, #use

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 Armor

#describe_detailed, #use

Methods inherited from Item

#describe_detailed

Methods inherited from Entity

#puts, #use

Constructor Details

#initializeIronHelmet

Returns a new instance of IronHelmet.



8
9
10
11
12
13
14
15
# File 'lib/gemwarrior/entities/armor/iron_helmet.rb', line 8

def initialize
  super

  self.name         = 'iron_helmet'
  self.name_display = 'Iron Helmet'
  self.description  = 'The noggin is better off when encased in a heavy, yet safe, bowl-shaped carapace made of solid iron.'
  self.defense      = 3
end