Paradise Station 13 - Modules - TypesVar Details - Proc Details

Proximity checker abstract object

Inteded for use with the proximity checker component (/datum/component/proximity_monitor). Whenever a movable atom crosses this object, it calls HasProximity() on the object which is listening for proximity (hasprox_receiver).

Vars

activeWhether or not the proximity checker is listening for things crossing it.
hasprox_receiverThe linked atom which has the proximity_monitor component, and will recieve the HasProximity() calls.

Procs

CrossedSomething crossed over the proximity_checker. Notify the hasprox_receiver it has proximity with something. Only fires if the checker is active.
HandleMoveMoves the proximity_checker 1 tile in the Dir direction.
OnParentDeletionCalled when the hasprox_receiver receives the COMSIG_PARENT_QDELETING signal. When the receiver is deleted, so is this object.

Var Details

active

Whether or not the proximity checker is listening for things crossing it.

hasprox_receiver

The linked atom which has the proximity_monitor component, and will recieve the HasProximity() calls.

Proc Details

Crossed

Something crossed over the proximity_checker. Notify the hasprox_receiver it has proximity with something. Only fires if the checker is active.

HandleMove

Moves the proximity_checker 1 tile in the Dir direction.

If Dir is null it will be recentered around the receiver via the recenter_prox_checkers() proc. If the new location of the receiver is NOT a turf, set active to FALSE, so that it does not receive proximity calls. If the new location of the receiver IS a turf, set active to TRUE, so that it can receive proximity calls again.

Arguments:

OnParentDeletion

Called when the hasprox_receiver receives the COMSIG_PARENT_QDELETING signal. When the receiver is deleted, so is this object.

Arugments: