Constructor and Description |
---|
HeuristicClosest()
Create heuristic.
|
Modifier and Type | Method and Description |
---|---|
double |
getCost(int sx,
int sy,
int dx,
int dy)
This controls the order in which tiles are searched while attempting to find a path to the target location.
|
public double getCost(int sx, int sy, int dx, int dy)
Heuristic
getCost
in interface Heuristic
sx
- The x coordinate of the tile being evaluated.sy
- The y coordinate of the tile being evaluated.dx
- The x coordinate of the target location.dy
- The y coordinate of the target location.Copyright © 2016 Byron 3D Games Studio. All rights reserved.