Class: RPG::UsableItem::Effect

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, value1 = 0, value2 = 0) ⇒ Effect

Returns a new instance of Effect.



564
565
566
567
568
569
# File 'lib/rgss3/rpg.rb', line 564

def initialize(code = 0, data_id = 0, value1 = 0, value2 = 0)
  @code = code
  @data_id = data_id
  @value1 = value1
  @value2 = value2
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



570
571
572
# File 'lib/rgss3/rpg.rb', line 570

def code
  @code
end

#data_idObject

Returns the value of attribute data_id.



571
572
573
# File 'lib/rgss3/rpg.rb', line 571

def data_id
  @data_id
end

#value1Object

Returns the value of attribute value1.



572
573
574
# File 'lib/rgss3/rpg.rb', line 572

def value1
  @value1
end

#value2Object

Returns the value of attribute value2.



573
574
575
# File 'lib/rgss3/rpg.rb', line 573

def value2
  @value2
end