mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 03:05:40 +00:00
AStar returns cell instead of path
This commit is contained in:
@@ -5,7 +5,7 @@ import { PathFindResultType } from "../pathfinding/AStar";
|
||||
export class ShellExecution implements Execution {
|
||||
|
||||
private active = true
|
||||
private pathFinder = PathFinder.Serial(2000, () => true, 10)
|
||||
private pathFinder: PathFinder
|
||||
private shell: MutableUnit
|
||||
|
||||
constructor(private spawn: Tile, private _owner: MutablePlayer, private target: MutableUnit) {
|
||||
@@ -13,6 +13,7 @@ export class ShellExecution implements Execution {
|
||||
}
|
||||
|
||||
init(mg: MutableGame, ticks: number): void {
|
||||
this.pathFinder = PathFinder.Serial(mg, 2000, () => true, 10)
|
||||
}
|
||||
|
||||
tick(ticks: number): void {
|
||||
|
||||
Reference in New Issue
Block a user