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)
-
- (Object) description
Returns the value of attribute description.
-
- (Object) features
Returns the value of attribute features.
-
- (Object) icon_index
Returns the value of attribute icon_index.
-
- (Object) id
Returns the value of attribute id.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) note
Returns the value of attribute note.
Instance Method Summary (collapse)
-
- (BaseItem) initialize
constructor
A new instance of BaseItem.
Constructor Details
- (BaseItem) initialize
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
- (Object) description
Returns the value of attribute description
14 15 16 |
# File 'lib/rpg/base_item.rb', line 14 def description @description end |
- (Object) features
Returns the value of attribute features
15 16 17 |
# File 'lib/rpg/base_item.rb', line 15 def features @features end |
- (Object) icon_index
Returns the value of attribute icon_index
13 14 15 |
# File 'lib/rpg/base_item.rb', line 13 def icon_index @icon_index end |
- (Object) id
Returns the value of attribute id
11 12 13 |
# File 'lib/rpg/base_item.rb', line 11 def id @id end |
- (Object) name
Returns the value of attribute name
12 13 14 |
# File 'lib/rpg/base_item.rb', line 12 def name @name end |
- (Object) note
Returns the value of attribute note
16 17 18 |
# File 'lib/rpg/base_item.rb', line 16 def note @note end |