Class: RPG::State
Instance Attribute Summary (collapse)
-
- (Object) auto_removal_timing
Returns the value of attribute auto_removal_timing.
-
- (Object) chance_by_damage
Returns the value of attribute chance_by_damage.
-
- (Object) max_turns
Returns the value of attribute max_turns.
-
- (Object) message1
Returns the value of attribute message1.
-
- (Object) message2
Returns the value of attribute message2.
-
- (Object) message3
Returns the value of attribute message3.
-
- (Object) message4
Returns the value of attribute message4.
-
- (Object) min_turns
Returns the value of attribute min_turns.
-
- (Object) priority
Returns the value of attribute priority.
-
- (Object) remove_at_battle_end
Returns the value of attribute remove_at_battle_end.
-
- (Object) remove_by_damage
Returns the value of attribute remove_by_damage.
-
- (Object) remove_by_restriction
Returns the value of attribute remove_by_restriction.
-
- (Object) remove_by_walking
Returns the value of attribute remove_by_walking.
-
- (Object) restriction
Returns the value of attribute restriction.
-
- (Object) steps_to_remove
Returns the value of attribute steps_to_remove.
Attributes inherited from BaseItem
#description, #features, #icon_index, #id, #name, #note
Instance Method Summary (collapse)
-
- (State) initialize
constructor
A new instance of State.
Constructor Details
- (State) initialize
Returns a new instance of State
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rpg/state.rb', line 3 def initialize super @restriction = 0 @priority = 50 @remove_at_battle_end = false @remove_by_restriction = false @auto_removal_timing = 0 @min_turns = 1 @max_turns = 1 @remove_by_damage = false @chance_by_damage = 100 @remove_by_walking = false @steps_to_remove = 100 @message1 = '' @message2 = '' @message3 = '' @message4 = '' end |
Instance Attribute Details
- (Object) auto_removal_timing
Returns the value of attribute auto_removal_timing
25 26 27 |
# File 'lib/rpg/state.rb', line 25 def auto_removal_timing @auto_removal_timing end |
- (Object) chance_by_damage
Returns the value of attribute chance_by_damage
29 30 31 |
# File 'lib/rpg/state.rb', line 29 def chance_by_damage @chance_by_damage end |
- (Object) max_turns
Returns the value of attribute max_turns
27 28 29 |
# File 'lib/rpg/state.rb', line 27 def max_turns @max_turns end |
- (Object) message1
Returns the value of attribute message1
32 33 34 |
# File 'lib/rpg/state.rb', line 32 def @message1 end |
- (Object) message2
Returns the value of attribute message2
33 34 35 |
# File 'lib/rpg/state.rb', line 33 def @message2 end |
- (Object) message3
Returns the value of attribute message3
34 35 36 |
# File 'lib/rpg/state.rb', line 34 def @message3 end |
- (Object) message4
Returns the value of attribute message4
35 36 37 |
# File 'lib/rpg/state.rb', line 35 def @message4 end |
- (Object) min_turns
Returns the value of attribute min_turns
26 27 28 |
# File 'lib/rpg/state.rb', line 26 def min_turns @min_turns end |
- (Object) priority
Returns the value of attribute priority
22 23 24 |
# File 'lib/rpg/state.rb', line 22 def priority @priority end |
- (Object) remove_at_battle_end
Returns the value of attribute remove_at_battle_end
23 24 25 |
# File 'lib/rpg/state.rb', line 23 def remove_at_battle_end @remove_at_battle_end end |
- (Object) remove_by_damage
Returns the value of attribute remove_by_damage
28 29 30 |
# File 'lib/rpg/state.rb', line 28 def remove_by_damage @remove_by_damage end |
- (Object) remove_by_restriction
Returns the value of attribute remove_by_restriction
24 25 26 |
# File 'lib/rpg/state.rb', line 24 def remove_by_restriction @remove_by_restriction end |
- (Object) remove_by_walking
Returns the value of attribute remove_by_walking
30 31 32 |
# File 'lib/rpg/state.rb', line 30 def remove_by_walking @remove_by_walking end |
- (Object) restriction
Returns the value of attribute restriction
21 22 23 |
# File 'lib/rpg/state.rb', line 21 def restriction @restriction end |
- (Object) steps_to_remove
Returns the value of attribute steps_to_remove
31 32 33 |
# File 'lib/rpg/state.rb', line 31 def steps_to_remove @steps_to_remove end |