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
151 152 |
# File 'docs/5_Battle_05_Actions.rb', line 151 def initialize(scene, who, with) end |
Instance Attribute Details
#who ⇒ PFM::PokemonBattler (readonly)
Get the Pokemon who’s being switched
143 144 145 |
# File 'docs/5_Battle_05_Actions.rb', line 143 def who @who end |
#with ⇒ PFM::PokemonBattler (readonly)
Get the Pokemon with the Pokemon is being switched
146 147 148 |
# File 'docs/5_Battle_05_Actions.rb', line 146 def with @with end |
Instance Method Details
#<=>(other) ⇒ Integer
Compare this action with another
156 157 |
# File 'docs/5_Battle_05_Actions.rb', line 156 def <=>(other) end |
#execute
Execute the action
159 160 |
# File 'docs/5_Battle_05_Actions.rb', line 159 def execute end |