Skip to content

useGameboardActorActions

useGameboardActorActions(): object

Defined in: src/react/react.ts:424

Bind actor actions for registering, spawning, moving, and updating actors.

collision: (actor, target, profile) => GameboardActorCollisionReport

Inspect whether an actor can enter a target tile.

string | Entity | undefined

string | HexCoordinates

GameboardActorCollisionProfile = {}

GameboardActorCollisionReport

command: (target, options) => GameboardInteractionCommand

Plan a high-level interaction command from a target input.

GameboardInteractionTargetInput

GameboardInteractionCommandOptions = {}

GameboardInteractionCommand

interaction: (target, options) => GameboardInteractionTargetReport

Resolve and inspect an interaction target.

GameboardInteractionTargetInput

GameboardInteractionTargetOptions = {}

GameboardInteractionTargetReport

move: (actor, to, options) => Entity

Move an actor to another tile.

string | Entity

string | HexCoordinates

MoveGameboardActorOptions = {}

Entity

navigationProfile: (actor, options) => GameboardNavigationProfile

Create an actor-aware navigation profile.

string | Entity

GameboardActorNavigationOptions = {}

GameboardNavigationProfile

neighborhood: (center, options) => GameboardNeighborhoodInspection

Inspect a radius of tiles around a center.

GameboardNeighborhoodCenter

GameboardNeighborhoodInspectionOptions = {}

GameboardNeighborhoodInspection

read: () => GameboardActorSnapshot[]

Read all registered actors.

GameboardActorSnapshot[]

register: (placement, options) => Entity

Register an existing placement as an actor.

string | Entity

GameboardActorRegistrationOptions

Entity

select: (options) => GameboardActorSelection

Select actors with optional faction, team, tag, radius, and hostility filters.

GameboardActorSelectionOptions = {}

GameboardActorSelection

spawn: (options) => Entity

Spawn a placement and register it as an actor.

SpawnGameboardActorOptions

Entity

targets: (options) => GameboardActorTargetingReport

Select and path to candidate actor targets.

GameboardActorTargetingOptions

GameboardActorTargetingReport

tile: (coordinates, options) => GameboardTileInspection

Inspect one tile from an actor/gameplay perspective.

string | HexCoordinates

GameboardTileInspectionOptions = {}

GameboardTileInspection

update: (actor, options) => Entity

Update actor trait state while preserving omitted fields.

string | Entity

UpdateGameboardActorOptions

Entity