?: Vec2 The direction the sentry is pointing to.
?: number The direction of the sentry as an angle in degrees.
?: number The field of view of the sentry in degrees.
: GameObj<any>[] The objects spotted most recently.
(cb: (objects: GameObj[]) => void): KEventController Attaches an event handler which is called when objects of interest are spotted.
param cb- The event handler called when objects are spotted.
(obj: GameObj<PosComp>, direction?: Vec2, fieldOfView?: number): boolean Returns true if the object is within the field of view.
param obj- The object to test.
param direction- The direction to look at.
param fieldOfView- The field of view in degrees.
(obj: GameObj<PosComp>): boolean Returns true if there is a line of sight to the object.
param obj- The object to test.