Class: RPG::BaseItem
- Inherits:
-
Object
- Object
- RPG::BaseItem
- Extended by:
- RgssDb::JsonableConstructor
- Includes:
- RgssDb::Jsonable
- Defined in:
- lib/rgss_db/model/rpg_maker_data/vx/rpg/base_item.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/base_item.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/base_item_feature.rb
Overview
A superclass of actor, class, skill, item, weapon, armor, enemy, and state.
Some items are unnecessary depending on the type of data, but they are included for convenience sake.
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.
- #to_s ⇒ Object
Methods included from RgssDb::JsonableConstructor
Methods included from RgssDb::Jsonable
Constructor Details
#initialize ⇒ BaseItem
Returns a new instance of BaseItem.
11 12 13 14 15 16 17 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/base_item.rb', line 11 def initialize @id = 0 @name = "" @icon_index = 0 @description = "" @note = "" end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
23 24 25 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/base_item.rb', line 23 def description @description end |
#features ⇒ Object
Returns the value of attribute features.
29 30 31 |
# File 'lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/base_item.rb', line 29 def features @features end |
#icon_index ⇒ Object
Returns the value of attribute icon_index.
23 24 25 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/base_item.rb', line 23 def icon_index @icon_index end |
#id ⇒ Object
Returns the value of attribute id.
23 24 25 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/base_item.rb', line 23 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
23 24 25 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/base_item.rb', line 23 def name @name end |
#note ⇒ Object
Returns the value of attribute note.
23 24 25 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/base_item.rb', line 23 def note @note end |
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/base_item.rb', line 19 def to_s @name.to_s end |