Class: RPG::EquipItem

Inherits:
BaseItem show all
Defined in:
lib/rpg/equip_item.rb

Direct Known Subclasses

Armor, Weapon

Instance Attribute Summary collapse

Attributes inherited from BaseItem

#description, #features, #icon_index, #id, #name, #note

Instance Method Summary collapse

Constructor Details

#initializeEquipItem

Returns a new instance of EquipItem.



3
4
5
6
7
8
# File 'lib/rpg/equip_item.rb', line 3

def initialize
  super
  @price = 0
  @etype_id = 0
  @params = [0] * 8
end

Instance Attribute Details

#etype_idObject

Returns the value of attribute etype_id.



10
11
12
# File 'lib/rpg/equip_item.rb', line 10

def etype_id
  @etype_id
end

#paramsObject

Returns the value of attribute params.



11
12
13
# File 'lib/rpg/equip_item.rb', line 11

def params
  @params
end

#priceObject

Returns the value of attribute price.



9
10
11
# File 'lib/rpg/equip_item.rb', line 9

def price
  @price
end