Class: Battle::Actions::Flee
Overview
Class describing the Flee action
Constant Summary collapse
- PRIORITY_ROAMING_FLEE =
Constant telling the priority applied to a Fleeing action for a Roaming Pokemon
-7 # Give the comparison result for a Roaming Pokemon # @param attack [Attack] other action # @return [Integer] # @note Based on Gen 5 mechanism as Gen 6 mechanism isn't a real Roaming feature # In Gen 5, a Roaming Pokemon trying to escape has a Priority of -7
Instance Attribute Summary collapse
-
#target ⇒ PFM::PokemonBattler
readonly
Get the pokemon trying to flee.
Instance Method Summary collapse
-
#<=>(other) ⇒ Integer
Compare this action with another.
-
#execute(from_scene = false)
Execute the action.
-
#initialize(scene, target) ⇒ Flee
constructor
Create a new flee action.
-
#roaming_comparison_result(attack) ⇒ Integer
Give the comparison result for a Roaming Pokemon In Gen 5, a Roaming Pokemon trying to escape has a Priority of -7.
Methods inherited from Base
Constructor Details
#initialize(scene, target) ⇒ Flee
Create a new flee action
187 188 |
# File 'docs/5_Battle_05_Actions.rb', line 187 def initialize(scene, target) end |
Instance Attribute Details
#target ⇒ PFM::PokemonBattler (readonly)
Get the pokemon trying to flee
183 184 185 |
# File 'docs/5_Battle_05_Actions.rb', line 183 def target @target end |
Instance Method Details
#<=>(other) ⇒ Integer
Compare this action with another
192 193 |
# File 'docs/5_Battle_05_Actions.rb', line 192 def <=>(other) end |
#execute(from_scene = false)
Execute the action
206 207 |
# File 'docs/5_Battle_05_Actions.rb', line 206 def execute(from_scene = false) end |
#roaming_comparison_result(attack) ⇒ Integer
Note:
Based on Gen 5 mechanism as Gen 6 mechanism isn’t a real Roaming feature
Give the comparison result for a Roaming Pokemon In Gen 5, a Roaming Pokemon trying to escape has a Priority of -7
202 203 |
# File 'docs/5_Battle_05_Actions.rb', line 202 def roaming_comparison_result(attack) end |