Class: RPG::Event::Page::Condition
- Inherits:
-
Object
- Object
- RPG::Event::Page::Condition
- Defined in:
- lib/rpg/event.rb
Instance Attribute Summary collapse
-
#self_switch_ch ⇒ Object
If the [Self Switch] condition is valid, the letter of that self switch (“A”..“D”).
-
#self_switch_valid ⇒ Object
Truth value for whether the [Self Switch] condition is valid.
-
#switch1_id ⇒ Object
If the first [Switch] condition is valid, the ID of that switch.
-
#switch1_valid ⇒ Object
Truth value for whether the first [Switch] condition is valid.
-
#switch2_id ⇒ Object
If the second [Switch] condition is valid, the ID of that switch.
-
#switch2_valid ⇒ Object
Truth value for whether the second [Switch] condition is valid.
-
#variable_id ⇒ Object
If the [Variable] condition is valid, the ID of that variable.
-
#variable_valid ⇒ Object
Truth value for whether the [Variable] condition is valid.
-
#variable_value ⇒ Object
If the [Variable] condition is valid, the standard value of that variable (x and greater).
Instance Method Summary collapse
-
#initialize ⇒ Condition
constructor
A new instance of Condition.
Constructor Details
#initialize ⇒ Condition
Returns a new instance of Condition.
112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/rpg/event.rb', line 112 def initialize @switch1_valid = false @switch2_valid = false @variable_valid = false @self_switch_valid = false @switch1_id = 1 @switch2_id = 1 @variable_id = 1 @variable_value = 0 @self_switch_ch = "A" end |
Instance Attribute Details
#self_switch_ch ⇒ Object
If the [Self Switch] condition is valid, the letter of that self switch (“A”..“D”).
151 152 153 |
# File 'lib/rpg/event.rb', line 151 def self_switch_ch @self_switch_ch end |
#self_switch_valid ⇒ Object
Truth value for whether the [Self Switch] condition is valid.
134 135 136 |
# File 'lib/rpg/event.rb', line 134 def self_switch_valid @self_switch_valid end |
#switch1_id ⇒ Object
If the first [Switch] condition is valid, the ID of that switch.
137 138 139 |
# File 'lib/rpg/event.rb', line 137 def switch1_id @switch1_id end |
#switch1_valid ⇒ Object
Truth value for whether the first [Switch] condition is valid.
125 126 127 |
# File 'lib/rpg/event.rb', line 125 def switch1_valid @switch1_valid end |
#switch2_id ⇒ Object
If the second [Switch] condition is valid, the ID of that switch.
140 141 142 |
# File 'lib/rpg/event.rb', line 140 def switch2_id @switch2_id end |
#switch2_valid ⇒ Object
Truth value for whether the second [Switch] condition is valid.
128 129 130 |
# File 'lib/rpg/event.rb', line 128 def switch2_valid @switch2_valid end |
#variable_id ⇒ Object
If the [Variable] condition is valid, the ID of that variable.
143 144 145 |
# File 'lib/rpg/event.rb', line 143 def variable_id @variable_id end |
#variable_valid ⇒ Object
Truth value for whether the [Variable] condition is valid.
131 132 133 |
# File 'lib/rpg/event.rb', line 131 def variable_valid @variable_valid end |
#variable_value ⇒ Object
If the [Variable] condition is valid, the standard value of that variable (x and greater).
147 148 149 |
# File 'lib/rpg/event.rb', line 147 def variable_value @variable_value end |