Class: Battle::AI::MoveHeuristicBase::HealingMoves
- Inherits:
-
Battle::AI::MoveHeuristicBase
- Object
- Battle::AI::MoveHeuristicBase
- Battle::AI::MoveHeuristicBase::HealingMoves
- Defined in:
- docs/5_Battle_30_AI_1_MoveHeuristic.rb
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.
Methods inherited from Battle::AI::MoveHeuristicBase
#ignore_effectiveness?, #ignore_power?, new, #overwrite_move_kind_flag?, register
Constructor Details
#initialize ⇒ HealingMoves
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
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
79 80 |
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 79 def healing_sacrifice_clause(move, user, target, ai) end |