diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-24 10:10:35 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-24 11:05:13 +0100 |
commit | e022aaa532c3c4b5cd43b1ea7d43e1e2e4e7aa91 (patch) | |
tree | 2dd3d2702c6afb0c2143ffed1c4e9305b10311ea /crawl-ref/source/coord.h | |
parent | 6728050e3e412aa0c335a3f7439657288c79d4c5 (diff) | |
download | crawl-ref-e022aaa532c3c4b5cd43b1ea7d43e1e2e4e7aa91.tar.gz crawl-ref-e022aaa532c3c4b5cd43b1ea7d43e1e2e4e7aa91.zip |
Move player2grid and grid2player to coord.
Diffstat (limited to 'crawl-ref/source/coord.h')
-rw-r--r-- | crawl-ref/source/coord.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/coord.h b/crawl-ref/source/coord.h index 685718ca8e..1baee51bee 100644 --- a/crawl-ref/source/coord.h +++ b/crawl-ref/source/coord.h @@ -32,4 +32,10 @@ int distance( const coord_def& p1, const coord_def& p2 ); int distance( int x, int y, int x2, int y2); bool adjacent( const coord_def& p1, const coord_def& p2 ); +// 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); + #endif |