Basic Proximity Checker
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
).
Because these objects try to make the smallest footprint possible, when these objects move they should use direct loc
setting only, and not forceMove
!
The overhead for forceMove is very unnecessary, because for example turfs and areas don't need to know when these have entered or exited them, etc.
These are invisible objects who's sole purpose is to simply inform the receiver that something has moved within X tiles of the it.
Vars | |
active | Whether or not the proximity checker is listening for things crossing it. |
---|---|
monitor | The component that this object is in use with, and that will receive HasProximity() calls. |
Procs | |
Crossed | Called when something crossed over the proximity_checker. Notifies the hasprox_receiver it has proximity with something. |
Var Details
active
Whether or not the proximity checker is listening for things crossing it.
monitor
The component that this object is in use with, and that will receive HasProximity()
calls.
Proc Details
Crossed
Called when something crossed over the proximity_checker. Notifies the hasprox_receiver
it has proximity with something.
Arguments:
- atom/movable/AM - the atom crossing the proximity checker
- oldloc - the location
AM
used to be at