Class: Battle::AI::MoveHeuristicBase::UnstackableBankEffectBase

Inherits:
MoveHeuristicBase
  • Object
show all
Defined in:
docs/5_Battle_30_AI_1_MoveHeuristic.rb

Overview

Class describing the heuristic of moves that apply unstackable bank effects

Direct Known Subclasses

LuckyChant, Mist, Safeguard, Spikes, StealthRock, StickyWeb, Tailwind

Instance Method Summary collapse

Constructor Details

#initialize ⇒ UnstackableBankEffectBase

Create a new UnstackableBankEffectBase



191
192
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 191

def initialize
end

Instance Method Details

#compute(move, user, target, ai) ⇒ Float

Compute the heuristic for unstackable effects

Parameters:

Returns:

  • (Float)


199
200
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 199

def compute(move, user, target, ai)
end

#effect_symbol ⇒ Symbol

Get the name of the effect

Returns:

  • (Symbol)


203
204
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 203

def effect_symbol
end