Files
Paradise/code/__HELPERS/spatial_info.html

8 lines
4.5 KiB
HTML

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>code/__HELPERS/spatial_info.dm - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a></header><main><h1>code/__HELPERS/spatial_info.dm <a href="https://github.com/ParadiseSS13/Paradise/blob/edee60476d21ee840643bd1abe7f6003a8c65773/code/__HELPERS/spatial_info.dm"><img src="git.png" width="16" height="16" title="code/__HELPERS/spatial_info.dm"></a></h1><table class="summary" cellspacing="0"><tr><th><a href="mob/oranges_ear.html">/mob/oranges_ear</a></th><td></td></tr><tr><th>/proc/<a href="global.html#proc/get_hearers_in_view">get_hearers_in_view</a></th><td>returns every hearaing movable in view to the turf of source not taking into account lighting
useful when you need to maintain always being able to hear something if a sound is emitted from it and you can see it (and youre in range).
otherwise this is just a more expensive version of get_hearers_in_LOS().</td></tr><tr><th>/proc/<a href="global.html#proc/get_hearers_in_range">get_hearers_in_range</a></th><td>The exact same as get_hearers_in_view, but not limited by visibility. Does no filtering for traits, line of sight, or any other such criteria.
Filtering is intended to be done by whatever calls this function.</td></tr><tr><th>/proc/<a href="global.html#proc/get_hearers_in_LOS">get_hearers_in_LOS</a></th><td>Returns a list of movable atoms that are hearing sensitive in view_radius and line of sight to source
the majority of the work is passed off to the spatial grid if view_radius &gt; 0
because view() isnt a raycasting algorithm, this does not hold symmetry to it. something in view might not be hearable with this.
if you want that use get_hearers_in_view() - however thats significantly more expensive</td></tr><tr><th>/proc/<a href="global.html#proc/circle_range">circle_range</a></th><td>Returns all atoms present in a circle around the center</td></tr><tr><th>/proc/<a href="global.html#proc/circle_view">circle_view</a></th><td>Returns all atoms present in a circle around the center but uses view() instead of range() (Currently not used)</td></tr><tr><th>/proc/<a href="global.html#proc/get_dist_euclidean">get_dist_euclidean</a></th><td>Returns the distance between two atoms</td></tr><tr><th>/proc/<a href="global.html#proc/circle_range_turfs">circle_range_turfs</a></th><td>Returns a list of turfs around a center based on RANGE_TURFS()</td></tr><tr><th>/proc/<a href="global.html#proc/circle_view_turfs">circle_view_turfs</a></th><td>Returns a list of turfs around a center based on view()</td></tr><tr><th>/proc/<a href="global.html#proc/border_diamond_range_turfs">border_diamond_range_turfs</a></th><td>Returns the list of turfs around the outside of a center based on RANGE_TURFS()</td></tr><tr><th>/proc/<a href="global.html#proc/slice_off_turfs">slice_off_turfs</a></th><td>Returns a slice of a list of turfs, defined by the ones that are inside the inner/outer angle's bounds</td></tr><tr><th>/proc/<a href="global.html#proc/get_hear">get_hear</a></th><td>Like view but bypasses luminosity check</td></tr><tr><th>/proc/<a href="global.html#proc/get_adjacent_areas">get_adjacent_areas</a></th><td>Returns a list of all areas that are adjacent to the center atom's area, clear the list of nulls at the end.</td></tr><tr><th>/proc/<a href="global.html#proc/get_adjacent_turfs">get_adjacent_turfs</a></th><td>Returns a list of all turfs that are adjacent to the center atom's turf, clear the list of nulls at the end.</td></tr><tr><th>/proc/<a href="global.html#proc/turf_peel">turf_peel</a></th><td>Behaves like the orange() proc, but only looks in the outer range of the function (The &quot;peel&quot; of the orange).
This is useful for things like checking if a mob is in a certain range, but not within a smaller range.</td></tr><tr><th>/proc/<a href="global.html#proc/diagonally_blocked">diagonally_blocked</a></th><td>check if 2 diagonal turfs are blocked by dense objects</td></tr><tr><th>/proc/<a href="global.html#proc/get_dist_manhattan">get_dist_manhattan</a></th><td>Returns the manhattan distance between two atoms. Returns INFINITY if either are not on a turf, for BYOND get_dist() parity.</td></tr></table></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/edee60476d21ee840643bd1abe7f6003a8c65773">edee604</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html>