Skip to content

GameboardBuilder

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:101

Fluent builder for deterministic gameboard plans using KayKit guide variants, stacked terrain, roads, rivers, harbors, settlements, props, and EXTRA units.

new GameboardBuilder(options): GameboardBuilder

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:117

Create a builder and initialize all tiles in the requested shape.

GameboardPlanOptions

GameboardBuilder

readonly seed: string

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:103

Seed used by deterministic builder helpers.


readonly shape: GameboardShape

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:105

Shape populated by this builder.


readonly textureSet: "default" | "fall" | "summer" | "winter"

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:107

Texture set applied to generated terrain.

addBridge(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:365

Add a bridge structure with bridge-specific metadata instead of requiring callers to know the raw neutral-structure asset ids.

BridgeOptions

this


addConstructionSite(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:411

Add a construction, ruin, or worksite structure with construction metadata.

ConstructionSiteOptions

this


addElevationRamp(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:455

Add a sloped grass ramp with ramp-specific metadata instead of requiring callers to place hex_grass_sloped_high or hex_grass_sloped_low directly.

ElevationRampOptions

this


addFactionBuilding(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:331

Add a faction building structure placement.

FactionBuildingOptions

this


addFlag(at, faction, options?): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:518

Add a faction flag prop placement.

HexCoordinates

"blue" | "green" | "red" | "yellow"

number

number

this


addForest(coordinates, options?): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:300

Add a forest decoration and mark the tile as forest terrain.

HexCoordinates

boolean

"small" | "medium" | "large"

"A" | "B"

this


addFortification(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:386

Add a wall or fence segment with fortification metadata.

FortificationOptions

this


addHarbor(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:673

Add a harbor structure, mark the coast/water relationship, and optionally place adjacent water props.

HarborOptions

this


addHill(coordinates, options?): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:275

Add a hill decoration and mark the tile as hill terrain.

HexCoordinates

number

boolean

HillVariant

boolean

this


addMountainStack(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:247

Add an elevated mountain tile plus a visible mountain-stack placement.

MountainStackOptions

this


addNature(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:486

Add a nature decoration placement.

NaturePlacementOptions

this


addNeutralStructure(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:348

Add a neutral structure placement.

NeutralStructureOptions

this


addPlacement(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:746

Add a custom placement to the plan.

string

HexCoordinates

number

GameboardPlacementKind

GameboardPlacementLayer

Readonly<Record<string, string | number | boolean | null>>

boolean

number

number

number

this


addProp(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:502

Add a prop placement.

PropPlacementOptions

this


addPropCluster(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:530

Add a semantic prop cluster such as a camp, worksite, stable yard, or cache.

PropClusterOptions

this


addRiverPath(path, options?): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:227

Add river connectivity along a coordinate path.

readonly HexCoordinates[]

"A" | "B"

boolean

boolean

this


addRoadPath(path, options?): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:209

Add road connectivity along a coordinate path.

readonly HexCoordinates[]

"high" | "low"

this


addSettlement(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:324

Add a settlement building. Alias for addFactionBuilding.

SettlementOptions

this


addSiegeProjectile(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:432

Add a neutral siege projectile with projectile-specific metadata.

SiegeProjectileOptions

this


addTransition(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:577

Add an EXTRA texture transition placement.

TransitionPlacementOptions

this


addUnit(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:594

Add one unit part placement from the EXTRA unit library.

UnitPlacementOptions

this


addUnitPreset(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:622

Add a predefined multi-part unit composition.

UnitPresetOptions

this


build(): GameboardPlan

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:787

Build an immutable gameboard plan from current builder state.

GameboardPlan


scatterDecorations(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:708

Scatter random decoration placements across matching terrain.

ScatterDecorationOptions

this


setCoastEdges(coordinates, waterEdges, options?): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:190

Mark a tile as coast and set the edges that face water.

HexCoordinates

number | readonly HexEdgeIndex[]

boolean

this


setElevation(coordinates, elevation): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:180

Set the elevation for an existing tile.

HexCoordinates

number

this


setTerrain(coordinates, terrain, options?): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:132

Set a base grass or water terrain tile.

HexCoordinates

"grass" | "water"

string

number

"default" | "fall" | "summer" | "winter"

this


setTextureSet(coordinates, textureSet): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:171

Set the texture set for an existing tile without changing its terrain.

HexCoordinates

"default" | "fall" | "summer" | "winter"

this


setTileAsset(options): this

Defined in: packages/declarative-hex-worlds/src/gameboard/gameboard.ts:149

Override a tile’s base asset, terrain, elevation, connectivity, and tags.

TileAssetOptions

this