Class: RPG::Event::Page::Condition

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCondition

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_chObject

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_validObject

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_idObject

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_validObject

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_idObject

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_validObject

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_idObject

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_validObject

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_valueObject

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