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

Inherits:
Object
  • Object
show all
Defined in:
docs/0_Dependencies.rb

Overview

Class representing a RMXP Event Page Condition

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#self_switch_ch

Returns the value of attribute self_switch_ch.



2513
2514
2515
# File 'docs/0_Dependencies.rb', line 2513

def self_switch_ch
  @self_switch_ch
end

#self_switch_valid

Returns the value of attribute self_switch_valid.



2508
2509
2510
# File 'docs/0_Dependencies.rb', line 2508

def self_switch_valid
  @self_switch_valid
end

#switch1_id

Returns the value of attribute switch1_id.



2509
2510
2511
# File 'docs/0_Dependencies.rb', line 2509

def switch1_id
  @switch1_id
end

#switch1_valid

Returns the value of attribute switch1_valid.



2505
2506
2507
# File 'docs/0_Dependencies.rb', line 2505

def switch1_valid
  @switch1_valid
end

#switch2_id

Returns the value of attribute switch2_id.



2510
2511
2512
# File 'docs/0_Dependencies.rb', line 2510

def switch2_id
  @switch2_id
end

#switch2_valid

Returns the value of attribute switch2_valid.



2506
2507
2508
# File 'docs/0_Dependencies.rb', line 2506

def switch2_valid
  @switch2_valid
end

#variable_id

Returns the value of attribute variable_id.



2511
2512
2513
# File 'docs/0_Dependencies.rb', line 2511

def variable_id
  @variable_id
end

#variable_valid

Returns the value of attribute variable_valid.



2507
2508
2509
# File 'docs/0_Dependencies.rb', line 2507

def variable_valid
  @variable_valid
end

#variable_value

Returns the value of attribute variable_value.



2512
2513
2514
# File 'docs/0_Dependencies.rb', line 2512

def variable_value
  @variable_value
end

Instance Method Details

#valid?(map_id, event_id) ⇒ Boolean

Return if the page condition is currently valid

Parameters:

  • map_id (Integer) —

    ID of the map where the event is

  • event_id (Integer) —

    ID of the event

Returns:

  • (Boolean) —

    if the page is valid



2503
2504
# File 'docs/0_Dependencies.rb', line 2503

def valid?(map_id, event_id)
end