Class: RPG::BaseItem
- Inherits:
-
Object
- Object
- RPG::BaseItem
- Defined in:
- lib/rpg/base_item.rb,
lib/rpg/base_item/feature.rb
Defined Under Namespace
Classes: Feature
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#features ⇒ Object
Returns the value of attribute features.
-
#icon_index ⇒ Object
Returns the value of attribute icon_index.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#note ⇒ Object
Returns the value of attribute note.
Instance Method Summary collapse
-
#initialize ⇒ BaseItem
constructor
A new instance of BaseItem.
Constructor Details
#initialize ⇒ BaseItem
Returns a new instance of BaseItem.
3 4 5 6 7 8 9 10 |
# File 'lib/rpg/base_item.rb', line 3 def initialize @id = 0 @name = '' @icon_index = 0 @description = '' @features = [] @note = '' end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
14 15 16 |
# File 'lib/rpg/base_item.rb', line 14 def description @description end |
#features ⇒ Object
Returns the value of attribute features.
15 16 17 |
# File 'lib/rpg/base_item.rb', line 15 def features @features end |
#icon_index ⇒ Object
Returns the value of attribute icon_index.
13 14 15 |
# File 'lib/rpg/base_item.rb', line 13 def icon_index @icon_index end |
#id ⇒ Object
Returns the value of attribute id.
11 12 13 |
# File 'lib/rpg/base_item.rb', line 11 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/rpg/base_item.rb', line 12 def name @name end |
#note ⇒ Object
Returns the value of attribute note.
16 17 18 |
# File 'lib/rpg/base_item.rb', line 16 def note @note end |