diff options
author | Samuel Bronson <naesten@gmail.com> | 2013-03-24 16:30:31 -0400 |
---|---|---|
committer | Samuel Bronson <naesten@gmail.com> | 2013-03-24 16:30:31 -0400 |
commit | 9826b8029a10c3c3d1cb9e2299811d8720510f26 (patch) | |
tree | 00ba9151944569787cf4475b55fdc387b0a0172b /crawl-ref/source/coord.h | |
parent | fe444ccd2c5713bbae4402149d67ae468dfd33dc (diff) | |
download | crawl-ref-9826b8029a10c3c3d1cb9e2299811d8720510f26.tar.gz crawl-ref-9826b8029a10c3c3d1cb9e2299811d8720510f26.zip |
More PURE, and introduce REALLYPURE as well.
Diffstat (limited to 'crawl-ref/source/coord.h')
-rw-r--r-- | crawl-ref/source/coord.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/coord.h b/crawl-ref/source/coord.h index fbbb720fb5..f6c8929537 100644 --- a/crawl-ref/source/coord.h +++ b/crawl-ref/source/coord.h @@ -42,7 +42,7 @@ coord_def clip(const coord_def &p); // Checks that a given point is within the map, excluding 'margin' squares at // the edge of the map. -bool map_bounds_with_margin(coord_def p, int margin); +bool map_bounds_with_margin(coord_def p, int margin) PURE; // Determines if the coordinate is within bounds of an LOS array. static inline bool show_bounds(const coord_def &p) @@ -51,17 +51,17 @@ static inline bool show_bounds(const coord_def &p) && p.y >= 0 && p.y < ENV_SHOW_DIAMETER); } -int grid_distance(const coord_def& p1, const coord_def& p2); -int distance2(const coord_def& p1, const coord_def& p2); -bool adjacent(const coord_def& p1, const coord_def& p2); +int grid_distance(const coord_def& p1, const coord_def& p2) PURE; +int distance2(const coord_def& p1, const coord_def& p2) PURE; +bool adjacent(const coord_def& p1, const coord_def& p2) PURE; // Conversion between different coordinate systems. // XXX: collect all of these here? -coord_def player2grid(const coord_def& pc); -coord_def grid2player(const coord_def& pc); -coord_def rotate_adjacent(coord_def vector, int direction); +coord_def player2grid(const coord_def& pc) PURE; +coord_def grid2player(const coord_def& pc) PURE; +coord_def rotate_adjacent(coord_def vector, int direction) PURE; -coord_def clamp_in_bounds(const coord_def &p); +coord_def clamp_in_bounds(const coord_def &p) PURE; #endif |