Class: RPG::BaseItem::Feature

Inherits:
Object
  • Object
show all
Defined in:
lib/rgss3/rpg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code = 0, data_id = 0, value = 0) ⇒ Feature

Returns a new instance of Feature.



376
377
378
379
380
# File 'lib/rgss3/rpg.rb', line 376

def initialize(code = 0, data_id = 0, value = 0)
  @code = code
  @data_id = data_id
  @value = value
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



381
382
383
# File 'lib/rgss3/rpg.rb', line 381

def code
  @code
end

#data_idObject

Returns the value of attribute data_id.



382
383
384
# File 'lib/rgss3/rpg.rb', line 382

def data_id
  @data_id
end

#valueObject

Returns the value of attribute value.



383
384
385
# File 'lib/rgss3/rpg.rb', line 383

def value
  @value
end