Skip to content

areGameboardActorsHostile

areGameboardActorsHostile(left, right): boolean

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

Return whether two actors should be considered hostile to each other.

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

GameboardActorSnapshot


{ 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

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

GameboardActorSnapshot


{ 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

boolean