Class: RPG::BaseItem

Inherits:
Object
  • Object
show all
Defined in:
lib/rgss3/rpg.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



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

#descriptionObject

Returns the value of attribute description.



369
370
371
# File 'lib/rgss3/rpg.rb', line 369

def description
  @description
end

#featuresObject

Returns the value of attribute features.



370
371
372
# File 'lib/rgss3/rpg.rb', line 370

def features
  @features
end

#icon_indexObject

Returns the value of attribute icon_index.



368
369
370
# File 'lib/rgss3/rpg.rb', line 368

def icon_index
  @icon_index
end

#idObject

Returns the value of attribute id.



366
367
368
# File 'lib/rgss3/rpg.rb', line 366

def id
  @id
end

#nameObject

Returns the value of attribute name.



367
368
369
# File 'lib/rgss3/rpg.rb', line 367

def name
  @name
end

#noteObject

Returns the value of attribute note.



371
372
373
# File 'lib/rgss3/rpg.rb', line 371

def note
  @note
end