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

Inherits:
Object
  • Object
show all
Defined in:
lib/rpg/troop/page/condition.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Condition) initialize

Returns a new instance of Condition



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/rpg/troop/page/condition.rb', line 5

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

- (Object) actor_hp

Returns the value of attribute actor_hp



29
30
31
# File 'lib/rpg/troop/page/condition.rb', line 29

def actor_hp
  @actor_hp
end

- (Object) actor_id

Returns the value of attribute actor_id



28
29
30
# File 'lib/rpg/troop/page/condition.rb', line 28

def actor_id
  @actor_id
end

- (Object) actor_valid

Returns the value of attribute actor_valid



22
23
24
# File 'lib/rpg/troop/page/condition.rb', line 22

def actor_valid
  @actor_valid
end

- (Object) enemy_hp

Returns the value of attribute enemy_hp



27
28
29
# File 'lib/rpg/troop/page/condition.rb', line 27

def enemy_hp
  @enemy_hp
end

- (Object) enemy_index

Returns the value of attribute enemy_index



26
27
28
# File 'lib/rpg/troop/page/condition.rb', line 26

def enemy_index
  @enemy_index
end

- (Object) enemy_valid

Returns the value of attribute enemy_valid



21
22
23
# File 'lib/rpg/troop/page/condition.rb', line 21

def enemy_valid
  @enemy_valid
end

- (Object) switch_id

Returns the value of attribute switch_id



30
31
32
# File 'lib/rpg/troop/page/condition.rb', line 30

def switch_id
  @switch_id
end

- (Object) switch_valid

Returns the value of attribute switch_valid



23
24
25
# File 'lib/rpg/troop/page/condition.rb', line 23

def switch_valid
  @switch_valid
end

- (Object) turn_a

Returns the value of attribute turn_a



24
25
26
# File 'lib/rpg/troop/page/condition.rb', line 24

def turn_a
  @turn_a
end

- (Object) turn_b

Returns the value of attribute turn_b



25
26
27
# File 'lib/rpg/troop/page/condition.rb', line 25

def turn_b
  @turn_b
end

- (Object) turn_ending

Returns the value of attribute turn_ending



19
20
21
# File 'lib/rpg/troop/page/condition.rb', line 19

def turn_ending
  @turn_ending
end

- (Object) turn_valid

Returns the value of attribute turn_valid



20
21
22
# File 'lib/rpg/troop/page/condition.rb', line 20

def turn_valid
  @turn_valid
end