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.



646
647
648
649
650
651
652
653
# File 'lib/R3EXS/RGSS3.rb', line 646

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

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



658
659
660
# File 'lib/R3EXS/RGSS3.rb', line 658

def description
  @description
end

#featuresObject

Returns the value of attribute features.



659
660
661
# File 'lib/R3EXS/RGSS3.rb', line 659

def features
  @features
end

#icon_indexObject

Returns the value of attribute icon_index.



657
658
659
# File 'lib/R3EXS/RGSS3.rb', line 657

def icon_index
  @icon_index
end

#idObject

Returns the value of attribute id.



655
656
657
# File 'lib/R3EXS/RGSS3.rb', line 655

def id
  @id
end

#nameObject

Returns the value of attribute name.



656
657
658
# File 'lib/R3EXS/RGSS3.rb', line 656

def name
  @name
end

#noteObject

Returns the value of attribute note.



660
661
662
# File 'lib/R3EXS/RGSS3.rb', line 660

def note
  @note
end