Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
Represents the 2D coordinates of a tile. More...
#include <LongPathfinder.h>
Public Member Functions | |
TileID () | |
TileID (u16 i, u16 j) | |
bool | operator== (const TileID &b) const |
bool | operator< (const TileID &b) const |
Returns lexicographic order over (i,j) More... | |
u16 | i () const |
u16 | j () const |
Private Attributes | |
u32 | data |
Represents the 2D coordinates of a tile.
The i/j components are packed into a single u32, since we usually use these objects for equality comparisons and the VC2010 optimizer doesn't seem to automatically compare two u16s in a single operation. TODO: maybe VC2012 will?
|
inline |
|
inline |
|
inline |
|
inline |
Returns lexicographic order over (i,j)
|
inline |
|
private |