Skip to content

gameboardActorBlocksMovement

gameboardActorBlocksMovement(actor, placement?, profile?): boolean

Defined in: src/actors/actors.ts:1382

Evaluate whether an actor/placement combination blocks movement under a collision profile.

{ actorId: string; blocksMovement: boolean; faction: string | undefined; hostile: boolean; interactive: boolean; kind: GameboardActorKind; metadata: Record<string, GameboardActorMetadataValue>; tags: string[]; team: string | undefined; } | undefined

{ actorId: string; blocksMovement: boolean; faction: string | undefined; hostile: boolean; interactive: boolean; kind: GameboardActorKind; metadata: Record<string, GameboardActorMetadataValue>; tags: string[]; team: string | undefined; }

string = ''

Stable gameplay actor id.

boolean = false

Whether this actor blocks movement.

string | undefined = ...

Optional faction identifier.

boolean = false

Whether this actor is generally hostile.

boolean = false

Whether this actor should be treated as an interaction target.

GameboardActorKind = ...

Actor role used by collision, targeting, commands, and fixtures.

Record<string, GameboardActorMetadataValue> = ...

Serializable actor metadata.

string[] = ...

Free-form actor tags.

string | undefined = ...

Optional team identifier.


undefined

Pick<GameboardPlacementSpec, "kind" | "layer">

GameboardActorCollisionProfile = {}

boolean