Class: Battle::Actions::Switch
Overview
Class describing the usage of switching out a Pokemon
Instance Attribute Summary collapse
-
#who ⇒ PFM::PokemonBattler
readonly
Get the Pokemon who's being switched.
-
#with ⇒ PFM::PokemonBattler
readonly
Get the Pokemon with the Pokemon is being switched.
Instance Method Summary collapse
-
#<=>(other) ⇒ Integer
Compare this action with another.
-
#execute
Execute the action.
-
#initialize(scene, who, with) ⇒ Switch
constructor
Create a new switch action.
Methods inherited from Base
Constructor Details
#initialize(scene, who, with) ⇒ Switch
Create a new switch action
157 158 |
# File 'docs/5_Battle_05_Actions.rb', line 157 def initialize(scene, who, with) end |
Instance Attribute Details
#who ⇒ PFM::PokemonBattler (readonly)
Get the Pokemon who's being switched
149 150 151 |
# File 'docs/5_Battle_05_Actions.rb', line 149 def who @who end |
#with ⇒ PFM::PokemonBattler (readonly)
Get the Pokemon with the Pokemon is being switched
152 153 154 |
# File 'docs/5_Battle_05_Actions.rb', line 152 def with @with end |
Instance Method Details
#<=>(other) ⇒ Integer
Compare this action with another
162 163 |
# File 'docs/5_Battle_05_Actions.rb', line 162 def <=>(other) end |
#execute
Execute the action
165 166 |
# File 'docs/5_Battle_05_Actions.rb', line 165 def execute end |