Class: Battle::AI::MoveHeuristicBase::UnstackableEffectBase
- Inherits:
-
MoveHeuristicBase
- Object
- MoveHeuristicBase
- Battle::AI::MoveHeuristicBase::UnstackableEffectBase
- Defined in:
- docs/5_Battle_30_AI_1_MoveHeuristic.rb
Overview
Class describing the heuristic of moves that apply unstackable effects
Direct Known Subclasses
AquaRing, CantSwitch, Disable, Embargo, Encore, FocusEnergy, Foresight, Ingrain, LeechSeed, MagnetRise, MiracleEye, SelfEffectBase, Taunt, Torment, Yawn
Instance Method Summary collapse
-
#compute(move, user, target, ai) ⇒ Float
Compute the heuristic for unstackable effects.
-
#effect_symbol ⇒ Symbol
Get the name of the effect.
-
#initialize ⇒ UnstackableEffectBase
constructor
Create a new UnstackableEffectBase.
Constructor Details
#initialize ⇒ UnstackableEffectBase
Create a new UnstackableEffectBase
281 282 |
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 281 def initialize end |
Instance Method Details
#compute(move, user, target, ai) ⇒ Float
Compute the heuristic for unstackable effects
289 290 |
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 289 def compute(move, user, target, ai) end |
#effect_symbol ⇒ Symbol
Get the name of the effect
293 294 |
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 293 def effect_symbol end |