ComputerSeatOptions beta
Interface of @v12-engine/engine/ai
export interface ComputerSeatOptionsHow a seat asks its computer player to think (createComputerSystem)
Members
budget
budget?: number | ThinkBudgetOptions;How much of a think one tick may do (ThinkBudgetOptions: modules a tick, units looked at a tick as the modules say, the milliseconds a module is warned over), or the modules a tick as a number: a think with more goes on at the next tick, over the same picture. Everything in one tick when left out
every
every?: number;Seconds between thinks: 1 when left out
observer
observer?: boolean;Whether the seat sees everything, as an observer does (LocalSession's observer): the one way a computer sees through the fog, for a profile with vision: 'all' (insane). Its own seat's sight when left out
offset
offset?: number;The tick in each round the seat thinks at: seven times the player's id when left out, so that seats think at different moments
onDispose
onDispose?: () => void;Called as the seat is taken away (dispose): to undo what seating did outside the computer (a hook added)
profile
profile?: AiProfile;How well the seat plays (AiProfile): its handicap (what its workers bring in, the health of what it has, the damage it deals, how long what it makes takes, made more or less through hooks that go with the seat) and vision: 'all' (it sees everything, as observer). A brain's seat and a game's own computer (defineComputer) are both given the profile of their difficulty
snapshot
snapshot?: 'lean' | 'full';What the seat's picture of the game carries: lean, what a computer reads (the entities, the players, the items, the deaths, damage, pings, chat and the game's own events) and none of what a screen needs (projectiles, missiles, corpses, reveals, the effects and the rest of the events), which is cheaper to take and to hear; full, everything a player's seat gets. full when left out here; a brain's seat is lean unless its definition says otherwise (BrainDef.snapshot)