Class: Battle::Actions::Shift
Overview
Class describing the usage of switching out a Pokemon
Instance Attribute Summary collapse
-
#launcher ⇒ PFM::PokemonBattler
readonly
Get the Pokemon who initiated the shifting.
Instance Method Summary collapse
-
#<=>(other) ⇒ Integer
Compare this action with another.
-
#execute
Execute the action.
-
#initialize(scene, launcher) ⇒ Shift
constructor
Create a new shift action.
-
#priority ⇒ Integer
Get the priority of the move.
Methods inherited from Base
Constructor Details
#initialize(scene, launcher) ⇒ Shift
Create a new shift action
246 247 |
# File 'docs/5_Battle_05_Actions.rb', line 246 def initialize(scene, launcher) end |
Instance Attribute Details
#launcher ⇒ PFM::PokemonBattler (readonly)
Get the Pokemon who initiated the shifting
242 243 244 |
# File 'docs/5_Battle_05_Actions.rb', line 242 def launcher @launcher end |
Instance Method Details
#<=>(other) ⇒ Integer
Compare this action with another
251 252 |
# File 'docs/5_Battle_05_Actions.rb', line 251 def <=>(other) end |
#execute
Execute the action
258 259 |
# File 'docs/5_Battle_05_Actions.rb', line 258 def execute end |
#priority ⇒ Integer
Get the priority of the move
255 256 |
# File 'docs/5_Battle_05_Actions.rb', line 255 def priority end |