Class: RPG::BaseItem

Inherits:
Object
  • Object
show all
Defined in:
lib/R3EXS/RGSS3.rb

Direct Known Subclasses

Actor, Class, Enemy, EquipItem, State, UsableItem

Defined Under Namespace

Classes: Feature

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBaseItem

Returns a new instance of BaseItem.



624
625
626
627
628
629
630
631
# File 'lib/R3EXS/RGSS3.rb', line 624

def initialize
    @id          = 0
    @name        = ''
    @icon_index  = 0
    @description = ''
    @features    = []
    @note        = ''
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



636
637
638
# File 'lib/R3EXS/RGSS3.rb', line 636

def description
  @description
end

#featuresObject

Returns the value of attribute features.



637
638
639
# File 'lib/R3EXS/RGSS3.rb', line 637

def features
  @features
end

#icon_indexObject

Returns the value of attribute icon_index.



635
636
637
# File 'lib/R3EXS/RGSS3.rb', line 635

def icon_index
  @icon_index
end

#idObject

Returns the value of attribute id.



633
634
635
# File 'lib/R3EXS/RGSS3.rb', line 633

def id
  @id
end

#nameObject

Returns the value of attribute name.



634
635
636
# File 'lib/R3EXS/RGSS3.rb', line 634

def name
  @name
end

#noteObject

Returns the value of attribute note.



638
639
640
# File 'lib/R3EXS/RGSS3.rb', line 638

def note
  @note
end