MCPcopy Create free account
hub / github.com/DFHack/dfhack / is_valid_tile_coord

Function is_valid_tile_coord

library/include/modules/Maps.h:174–176  ·  view source on GitHub ↗

* Check if a 2D coordinate is in the 0-15 range. */

Source from the content-addressed store, hash-verified

172 * Check if a 2D coordinate is in the 0-15 range.
173 */
174inline bool is_valid_tile_coord(df::coord2d p) {
175 return (p.x & ~15) == 0 && (p.y & ~15) == 0;
176}
177
178/**
179 * Utility class representing a cuboid of df::coord.

Callers 2

init_item_countsMethod · 0.85
regrass_tileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected