Class: RPG::UsableItem::Effect
- Inherits:
-
Object
- Object
- RPG::UsableItem::Effect
- Defined in:
- lib/R3EXS/RGSS3.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#data_id ⇒ Object
Returns the value of attribute data_id.
-
#value1 ⇒ Object
Returns the value of attribute value1.
-
#value2 ⇒ Object
Returns the value of attribute value2.
Instance Method Summary collapse
-
#initialize(code = 0, data_id = 0, value1 = 0, value2 = 0) ⇒ Effect
constructor
A new instance of Effect.
Constructor Details
#initialize(code = 0, data_id = 0, value1 = 0, value2 = 0) ⇒ Effect
Returns a new instance of Effect.
1011 1012 1013 1014 1015 1016 |
# File 'lib/R3EXS/RGSS3.rb', line 1011 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
#code ⇒ Object
Returns the value of attribute code.
1018 1019 1020 |
# File 'lib/R3EXS/RGSS3.rb', line 1018 def code @code end |
#data_id ⇒ Object
Returns the value of attribute data_id.
1019 1020 1021 |
# File 'lib/R3EXS/RGSS3.rb', line 1019 def data_id @data_id end |
#value1 ⇒ Object
Returns the value of attribute value1.
1020 1021 1022 |
# File 'lib/R3EXS/RGSS3.rb', line 1020 def value1 @value1 end |
#value2 ⇒ Object
Returns the value of attribute value2.
1021 1022 1023 |
# File 'lib/R3EXS/RGSS3.rb', line 1021 def value2 @value2 end |