Class: Battle::AI::MoveHeuristicBase::HealingMoves

Inherits:
Battle::AI::MoveHeuristicBase show all
Defined in:
docs/5_Battle_30_AI_1_MoveHeuristic.rb

Instance Method Summary collapse

Methods inherited from Battle::AI::MoveHeuristicBase

#ignore_effectiveness?, #ignore_power?, new, #overwrite_move_kind_flag?, register

Constructor Details

#initializeHealingMoves

Create a new Rest Heuristic



63
64
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 63

def initialize
end

Instance Method Details

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

Compute the heuristic

Parameters:

Returns:

  • (Float)


71
72
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 71

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

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

Test if sacrifice move should not be used

Parameters:

Returns:

  • (Float)


79
80
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 79

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