Class: RPG::EquipItem
Instance Attribute Summary (collapse)
-
- (Object) etype_id
Returns the value of attribute etype_id.
-
- (Object) params
Returns the value of attribute params.
-
- (Object) price
Returns the value of attribute price.
Attributes inherited from BaseItem
#description, #features, #icon_index, #id, #name, #note
Instance Method Summary (collapse)
-
- (EquipItem) initialize
constructor
A new instance of EquipItem.
Constructor Details
- (EquipItem) initialize
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
- (Object) etype_id
Returns the value of attribute etype_id
10 11 12 |
# File 'lib/rpg/equip_item.rb', line 10 def etype_id @etype_id end |
- (Object) params
Returns the value of attribute params
11 12 13 |
# File 'lib/rpg/equip_item.rb', line 11 def params @params end |
- (Object) price
Returns the value of attribute price
9 10 11 |
# File 'lib/rpg/equip_item.rb', line 9 def price @price end |