Class: RPG::Troop::Page::Condition

Inherits:
Object
  • Object
show all
Extended by:
RgssDb::JsonableConstructor
Includes:
RgssDb::Jsonable
Defined in:
lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb,
lib/rgss_db/model/rpg_maker_data/xp/rpg/troop_page_condition.rb,
lib/rgss_db/model/rpg_maker_data/vx_ace/rpg/troop_page_condition.rb

Overview

The data class of battle event [Conditions].

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RgssDb::JsonableConstructor

json_create, json_new

Methods included from RgssDb::Jsonable

#as_json, #to_json

Constructor Details

#initializeCondition

Returns a new instance of Condition.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 13

def initialize
  @turn_ending = false
  @turn_valid = false
  @enemy_valid = false
  @actor_valid = false
  @switch_valid = false
  @turn_a = 0
  @turn_b = 0
  @enemy_index = 0
  @enemy_hp = 50
  @actor_id = 1
  @actor_hp = 50
  @switch_id = 1
end

Instance Attribute Details

#actor_hpObject

Returns the value of attribute actor_hp.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def actor_hp
  @actor_hp
end

#actor_idObject

Returns the value of attribute actor_id.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def actor_id
  @actor_id
end

#actor_validObject

Returns the value of attribute actor_valid.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def actor_valid
  @actor_valid
end

#enemy_hpObject

Returns the value of attribute enemy_hp.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def enemy_hp
  @enemy_hp
end

#enemy_indexObject

Returns the value of attribute enemy_index.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def enemy_index
  @enemy_index
end

#enemy_validObject

Returns the value of attribute enemy_valid.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def enemy_valid
  @enemy_valid
end

#switch_idObject

Returns the value of attribute switch_id.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def switch_id
  @switch_id
end

#switch_validObject

Returns the value of attribute switch_valid.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def switch_valid
  @switch_valid
end

#turn_aObject

Returns the value of attribute turn_a.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def turn_a
  @turn_a
end

#turn_bObject

Returns the value of attribute turn_b.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def turn_b
  @turn_b
end

#turn_endingObject

Returns the value of attribute turn_ending.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def turn_ending
  @turn_ending
end

#turn_validObject

Returns the value of attribute turn_valid.



28
29
30
# File 'lib/rgss_db/model/rpg_maker_data/vx/rpg/troop_page_condition.rb', line 28

def turn_valid
  @turn_valid
end