Skip to content

SessionComputer beta ​

Interface of @v12-engine/engine

ts
export interface SessionComputer

What a computer player's seat gives its brain besides the snapshot (SessionCan.computer)

Members ​

lanes ​

ts
lanes(): readonly Lane[];

The lanes of the map (lanesOf), as everyone knows them from the map: what a computer player of lanes walks with its waves

mines ​

ts
mines(): readonly MineInfo[];

Where the game's money is mined (a resource of Registry.currency: gold mines), as a player knows from the map, under the fog too: what a computer player looks to for another hall

pendingEvents ​

ts
pendingEvents(): SessionEvent[];

What happened since the last snapshot, not yet given in one: a copy. The brain's save keeps what it heard since it last thought (restoreEvents), so that a game loaded from the save hears it too

restoreEvents ​

ts
restoreEvents(events: readonly SessionEvent[]): void;

Takes back what pendingEvents gave, ahead of what has happened since: in a game loaded from a save