Skip to content

AttackState beta ​

Interface of @v12-engine/engine

ts
export interface AttackState extends WaitState

What attack keeps: whether it lost sight and walks to where it last saw its target, and whether it waits for room by it (WaitState)

Members ​

lastSeen ​

ts
lastSeen?: Vec2;

Where it last saw it

searching ​

ts
searching?: boolean;

Walking to where it last saw its target