MCPcopy Create free account
hub / github.com/esengine/esengine / constructor

Method constructor

packages/pathfinding/src/grid/GridMap.ts:30–37  ·  view source on GitHub ↗
(x: number, y: number, walkable: boolean = true, cost: number = 1)

Source from the content-addressed store, hash-verified

28 walkable: boolean;
29
30 constructor(x: number, y: number, walkable: boolean = true, cost: number = 1) {
31 this.x = x;
32 this.y = y;
33 this.id = `${x},${y}`;
34 this.position = createPoint(x, y);
35 this.walkable = walkable;
36 this.cost = cost;
37 }
38}
39
40// =============================================================================

Callers

nothing calls this directly

Calls 1

createPointFunction · 0.90

Tested by

no test coverage detected