Focus

Entity focus structure used by AI.

Members

Type Member Description
Vec2 pos Position
Rect box Bounding box
bool valid Is valid, false by default
bool wait AI should wait when arrived at pos, false by default

Constructors

Args
new ()

Functions

Type Function Args
float distanceTo (alive_entity)
float distanceTo (focus)
bool waitClose (alive_entity, dist)
bool atRight (alive_entity)
bool under (alive_entity)
bool canBeHit ()