Class: RPG::BaseItem

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



3
4
5
6
7
8
9
10
# File 'lib/rpg/base_item.rb', line 3

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

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



14
15
16
# File 'lib/rpg/base_item.rb', line 14

def description
  @description
end

#featuresObject

Returns the value of attribute features.



15
16
17
# File 'lib/rpg/base_item.rb', line 15

def features
  @features
end

#icon_indexObject

Returns the value of attribute icon_index.



13
14
15
# File 'lib/rpg/base_item.rb', line 13

def icon_index
  @icon_index
end

#idObject

Returns the value of attribute id.



11
12
13
# File 'lib/rpg/base_item.rb', line 11

def id
  @id
end

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/rpg/base_item.rb', line 12

def name
  @name
end

#noteObject

Returns the value of attribute note.



16
17
18
# File 'lib/rpg/base_item.rb', line 16

def note
  @note
end