Class: RPG::BaseItem
- Inherits:
-
Object
- Object
- RPG::BaseItem
- Defined in:
- lib/rgss3/rpg.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
358 359 360 361 362 363 364 365 |
# File 'lib/rgss3/rpg.rb', line 358 def initialize @id = 0 @name = '' @icon_index = 0 @description = '' @features = [] @note = '' end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
369 370 371 |
# File 'lib/rgss3/rpg.rb', line 369 def description @description end |
#features ⇒ Object
Returns the value of attribute features.
370 371 372 |
# File 'lib/rgss3/rpg.rb', line 370 def features @features end |
#icon_index ⇒ Object
Returns the value of attribute icon_index.
368 369 370 |
# File 'lib/rgss3/rpg.rb', line 368 def icon_index @icon_index end |
#id ⇒ Object
Returns the value of attribute id.
366 367 368 |
# File 'lib/rgss3/rpg.rb', line 366 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
367 368 369 |
# File 'lib/rgss3/rpg.rb', line 367 def name @name end |
#note ⇒ Object
Returns the value of attribute note.
371 372 373 |
# File 'lib/rgss3/rpg.rb', line 371 def note @note end |