mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-29 18:32:34 +00:00
finish defense post
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Cell, Tile } from "../game/Game";
|
||||
import { Cell, TerrainType, Tile } from "../game/Game";
|
||||
|
||||
export interface AStar {
|
||||
compute(): PathFindResultType
|
||||
@@ -26,6 +26,7 @@ export interface SearchNode {
|
||||
cost(): number
|
||||
cell(): Cell
|
||||
neighbors(): SearchNode[]
|
||||
terrainType(): TerrainType
|
||||
}
|
||||
export interface Point {
|
||||
x: number;
|
||||
|
||||
@@ -21,7 +21,7 @@ export class MiniAStar implements AStar {
|
||||
this.aStar = new SerialAStar(
|
||||
miniSrc,
|
||||
miniDst,
|
||||
(t => (t as TerrainTile).terrainType() == TerrainType.Ocean),
|
||||
canMove,
|
||||
iterations,
|
||||
maxTries
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user