Skip to content

MoveOptions beta ​

Interface of @v12-engine/engine

ts
export interface MoveOptions

Options for a move order given by code: arrival range, group, facing to end on and whether it is a step aside

Members ​

aside ​

ts
aside?: boolean;

A step aside for another (stepAside), or any short move that is nobody's business: the unit goes round nobody, and asks those in its way aside only once held up, and only a few deep (MovementState.asideDepth), so that one step does not set off the next through a whole crowd

facing ​

ts
facing?: number;

Direction to turn to after arriving

groupId ​

ts
groupId?: number;

The id of the group ordered to move together (0 for none): a unit bumping into a group mate that already arrived on the point it goes to stops rather than push it, and those of a formation (MovementState.formation) keep their places

range ​

ts
range?: number;

Arrive once this close to the goal. ARRIVE_RANGE when left out