Class: Battle::AI::MoveHeuristicBase::TerrainMove

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

Direct Known Subclasses

TerrainMoveSeeItem

Instance Method Summary collapse

Constructor Details

#initialize ⇒ TerrainMove

Create a new heuristic for TerrainMove

Parameters:

  • ignore_effectiveness (Boolean) —

    if this heuristic ignore effectiveness (wants to compute it themself)

  • ignore_power (Boolean) —

    if this heuristic ignore power (wants to compute it themself)

  • overwrite_move_kind_flag (Boolean) —

    if the effect overwrite (to true) the can see move kind flag



584
585
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 584

def initialize
end

Instance Method Details

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

Compute the heuristic for TerrainMove

Parameters:

Returns:

  • (Float)


592
593
# File 'docs/5_Battle_30_AI_1_MoveHeuristic.rb', line 592

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