Class: RPG::Troop::Page::Condition
- Inherits:
-
Object
- Object
- RPG::Troop::Page::Condition
- Defined in:
- lib/rgss3/rpg.rb
Instance Attribute Summary collapse
-
#actor_hp ⇒ Object
Returns the value of attribute actor_hp.
-
#actor_id ⇒ Object
Returns the value of attribute actor_id.
-
#actor_valid ⇒ Object
Returns the value of attribute actor_valid.
-
#enemy_hp ⇒ Object
Returns the value of attribute enemy_hp.
-
#enemy_index ⇒ Object
Returns the value of attribute enemy_index.
-
#enemy_valid ⇒ Object
Returns the value of attribute enemy_valid.
-
#switch_id ⇒ Object
Returns the value of attribute switch_id.
-
#switch_valid ⇒ Object
Returns the value of attribute switch_valid.
-
#turn_a ⇒ Object
Returns the value of attribute turn_a.
-
#turn_b ⇒ Object
Returns the value of attribute turn_b.
-
#turn_ending ⇒ Object
Returns the value of attribute turn_ending.
-
#turn_valid ⇒ Object
Returns the value of attribute turn_valid.
Instance Method Summary collapse
-
#initialize ⇒ Condition
constructor
A new instance of Condition.
Constructor Details
#initialize ⇒ Condition
Returns a new instance of Condition.
785 786 787 788 789 790 791 792 793 794 795 796 797 798 |
# File 'lib/rgss3/rpg.rb', line 785 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_hp ⇒ Object
Returns the value of attribute actor_hp.
809 810 811 |
# File 'lib/rgss3/rpg.rb', line 809 def actor_hp @actor_hp end |
#actor_id ⇒ Object
Returns the value of attribute actor_id.
808 809 810 |
# File 'lib/rgss3/rpg.rb', line 808 def actor_id @actor_id end |
#actor_valid ⇒ Object
Returns the value of attribute actor_valid.
802 803 804 |
# File 'lib/rgss3/rpg.rb', line 802 def actor_valid @actor_valid end |
#enemy_hp ⇒ Object
Returns the value of attribute enemy_hp.
807 808 809 |
# File 'lib/rgss3/rpg.rb', line 807 def enemy_hp @enemy_hp end |
#enemy_index ⇒ Object
Returns the value of attribute enemy_index.
806 807 808 |
# File 'lib/rgss3/rpg.rb', line 806 def enemy_index @enemy_index end |
#enemy_valid ⇒ Object
Returns the value of attribute enemy_valid.
801 802 803 |
# File 'lib/rgss3/rpg.rb', line 801 def enemy_valid @enemy_valid end |
#switch_id ⇒ Object
Returns the value of attribute switch_id.
810 811 812 |
# File 'lib/rgss3/rpg.rb', line 810 def switch_id @switch_id end |
#switch_valid ⇒ Object
Returns the value of attribute switch_valid.
803 804 805 |
# File 'lib/rgss3/rpg.rb', line 803 def switch_valid @switch_valid end |
#turn_a ⇒ Object
Returns the value of attribute turn_a.
804 805 806 |
# File 'lib/rgss3/rpg.rb', line 804 def turn_a @turn_a end |
#turn_b ⇒ Object
Returns the value of attribute turn_b.
805 806 807 |
# File 'lib/rgss3/rpg.rb', line 805 def turn_b @turn_b end |
#turn_ending ⇒ Object
Returns the value of attribute turn_ending.
799 800 801 |
# File 'lib/rgss3/rpg.rb', line 799 def turn_ending @turn_ending end |
#turn_valid ⇒ Object
Returns the value of attribute turn_valid.
800 801 802 |
# File 'lib/rgss3/rpg.rb', line 800 def turn_valid @turn_valid end |