Skip to content

MeleeArmyMemory beta ​

Interface of @v12-engine/engine/ai

ts
export interface MeleeArmyMemory

What the army module remembers between thinks, as a save keeps it (BrainMemory.modules['melee.army'])

Members ​

attacks ​

ts
attacks: number;

Waves sent

harassed ​

ts
harassed?: number;

The tick the last harassing party was sent at

nextAttack ​

ts
nextAttack: number;

Seconds into the game the next wave's time comes

nextCreeping ​

ts
nextCreeping: number;

Seconds into the game it may go creeping again

raided ​

ts
raided?: number;

The tick the last raid was sent at

saidRetreat ​

ts
saidRetreat?: number;

The tick the wave it last said it falls back with turned at: said once a retreat

v ​

ts
v: 1;

The version of the memory's format: 1 so far

waiting ​

ts
waiting?: number;

Seconds into the game the wave began waiting past its time, short of its size or outmatched (goOdds): none while it is not

waveSize ​

ts
waveSize: number;

Units the next wave of its own asks for