code/__HELPERS/unsorted.dm
/proc/get_pixel_position_x | Gives X position on pixel grid of an object, accounting for offsets |
---|---|
/proc/get_pixel_position_y | Gives Y position on pixel grid of an object, accounting for offsets |
/proc/Get_Angle | Calculate the angle between two atoms. Uses north-clockwise convention: NORTH = 0, EAST = 90, etc. |
/proc/delta_to_angle | Calculate the angle produced by a pair of x and y deltas. Uses north-clockwise convention: NORTH = 0, EAST = 90, etc. |
/proc/TurfBlockedNonWindow | the actual dir between the start and target turf The direction that mover's path is being blocked by |
/proc/get_cardinal_dir | Returns the nearest cardinal dir between two atoms. Favors NORTH/SOUTH on perfect diagonals. Consistent and reversible. |
/proc/get_line | Get a list of turfs in a line from start_atom to end_atom . |
/proc/dview | Version of view() which ignores darkness, because BYOND doesn't have it (I actually suggested it but it was tagged redundant, BUT HEARERS IS A T- /rant). |
/proc/doview | Version of oview() which ignores darkness |
VARSET_WEAK_CALLBACK | Same as VARSET_CALLBACK, but uses a weakref to the datum. Use this if the timer is exceptionally long. |
UNTIL_OR_TIMEOUT | Macro for cases where an UNTIL() may go on forever (such as for an http request) |
/proc/getpois | Returns a list of all items of interest with their name |
/proc/get_related_directions | Given a direction, return the direction and the +-45 degree directions next to it |
/proc/should_block_game_interaction | Returns TRUE if the target is somewhere that the game should not interact with if possible In this case, admin Zs and tutorial areas |
Define Details
UNTIL_OR_TIMEOUT
Macro for cases where an UNTIL() may go on forever (such as for an http request)
VARSET_WEAK_CALLBACK
Same as VARSET_CALLBACK, but uses a weakref to the datum. Use this if the timer is exceptionally long.