Class: Battle::AI::MoveHeuristicBase::HealingMoves
- Inherits:
-
MoveHeuristicBase
- Object
- MoveHeuristicBase
- Battle::AI::MoveHeuristicBase::HealingMoves
- Defined in:
- docs/5_Battle_30_AI_1_MoveHeuristic.rb
Overview
Class describing the heuristic of healing moves
Instance Method Summary collapse
-
#compute(move, user, target, ai) ⇒ Float
Compute the heuristic.
-
#healing_sacrifice_clause(move, user, target, ai) ⇒ Float
Test if sacrifice move should not be used.
-
#initialize ⇒ HealingMoves
constructor
Create a new Rest Heuristic.
Constructor Details
#initialize ⇒ HealingMoves
Create a new Rest Heuristic
433 434 |
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 433 def initialize end |
Instance Method Details
#compute(move, user, target, ai) ⇒ Float
Compute the heuristic
441 442 |
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 441 def compute(move, user, target, ai) end |
#healing_sacrifice_clause(move, user, target, ai) ⇒ Float
Test if sacrifice move should not be used
449 450 |
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 449 def healing_sacrifice_clause(move, user, target, ai) end |