create async path finder, trade ships use async when captured

This commit is contained in:
Evan
2024-11-29 15:41:13 -08:00
parent b20f390c7c
commit 020d193667
19 changed files with 267 additions and 219 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
import { Execution, MutableGame, MutablePlayer, MutableUnit, Tile, Unit, UnitType } from "../game/Game";
import { PathFinder, PathFindResultType } from "../pathfinding/PathFinding";
import { PathFinder } from "../pathfinding/PathFinding";
import { PathFindResultType } from "../pathfinding/AStar";
export class ShellExecution implements Execution {
private active = true
private pathFinder = new PathFinder(2000, () => true, 10)
private pathFinder = PathFinder.Serial(2000, () => true, 10)
private shell: MutableUnit
constructor(private spawn: Tile, private _owner: MutablePlayer, private target: MutableUnit) {