Class: Battle::Actions::Attack
Overview
Class describing the Attack Action
Direct Known Subclasses
Defined Under Namespace
Classes: Encore
Instance Attribute Summary collapse
-
#ignore_speed ⇒ Boolean
Tell if this action can ignore speed of the other pokemon.
-
#launcher ⇒ PFM::PokemonBattler
readonly
Get the user of this move.
-
#move ⇒ Battle::Move
readonly
Get the move of this action.
-
#pursuit_enabled ⇒ Boolean
Tell if pursuit on this action is enabled.
Instance Method Summary collapse
-
#<=>(other) ⇒ Integer
Compare this action with another.
-
#dancer_sub_launchers
Function that manages the effect of the dancer ability.
-
#execute
Execute the action.
-
#initialize(scene, move, launcher, target_bank, target_position) ⇒ Attack
constructor
Create a new attack action.
-
#mycelium_might_priority(attack) ⇒ Integer
Define which Pokémon should go first if either of them or both have the ability Mycelium Might.
-
#priority ⇒ Integer
Get the priority of the move.
-
#target ⇒ PFM::PokemonBattler?
Get the target of the move.
Methods inherited from Base
Constructor Details
#initialize(scene, move, launcher, target_bank, target_position) ⇒ Attack
Create a new attack action
43 44 |
# File 'docs/5_Battle_05_Actions.rb', line 43 def initialize(scene, move, launcher, target_bank, target_position) end |
Instance Attribute Details
#ignore_speed ⇒ Boolean
Tell if this action can ignore speed of the other pokemon
36 37 38 |
# File 'docs/5_Battle_05_Actions.rb', line 36 def ignore_speed @ignore_speed end |
#launcher ⇒ PFM::PokemonBattler (readonly)
Get the user of this move
30 31 32 |
# File 'docs/5_Battle_05_Actions.rb', line 30 def launcher @launcher end |
#move ⇒ Battle::Move (readonly)
Get the move of this action
27 28 29 |
# File 'docs/5_Battle_05_Actions.rb', line 27 def move @move end |
#pursuit_enabled ⇒ Boolean
Tell if pursuit on this action is enabled
33 34 35 |
# File 'docs/5_Battle_05_Actions.rb', line 33 def pursuit_enabled @pursuit_enabled end |
Instance Method Details
#<=>(other) ⇒ Integer
Compare this action with another
48 49 |
# File 'docs/5_Battle_05_Actions.rb', line 48 def <=>(other) end |
#dancer_sub_launchers
Function that manages the effect of the dancer ability
62 63 |
# File 'docs/5_Battle_05_Actions.rb', line 62 def dancer_sub_launchers end |
#execute
Execute the action
59 60 |
# File 'docs/5_Battle_05_Actions.rb', line 59 def execute end |
#mycelium_might_priority(attack) ⇒ Integer
Define which Pokémon should go first if either of them or both have the ability Mycelium Might.
67 68 |
# File 'docs/5_Battle_05_Actions.rb', line 67 def mycelium_might_priority(attack) end |
#priority ⇒ Integer
Get the priority of the move
52 53 |
# File 'docs/5_Battle_05_Actions.rb', line 52 def priority end |
#target ⇒ PFM::PokemonBattler?
Get the target of the move
56 57 |
# File 'docs/5_Battle_05_Actions.rb', line 56 def target end |