35 const unsigned FlippedHorizontallyFlag = 0x80000000;
36 const unsigned FlippedVerticallyFlag = 0x40000000;
37 const unsigned FlippedDiagonallyFlag = 0x20000000;
55 MapTile(
unsigned _gid,
int _tilesetFirstGid,
unsigned _tilesetId)
57 ,
id(_gid & ~(FlippedHorizontallyFlag | FlippedVerticallyFlag | FlippedDiagonallyFlag))
63 id -= _tilesetFirstGid;
unsigned gid
Gid.
Definition: TmxMapTile.h:73
MapTile()
Default constructor.
Definition: TmxMapTile.h:45
int tilesetId
Tileset id.
Definition: TmxMapTile.h:67
bool flippedVertically
True when the tile should be drawn flipped vertically.
Definition: TmxMapTile.h:79
MapTile(unsigned _gid, int _tilesetFirstGid, unsigned _tilesetId)
Will take a gid and read the attributes from the first two bits of it.
Definition: TmxMapTile.h:55
bool flippedDiagonally
True when the tile should be drawn flipped diagonally.
Definition: TmxMapTile.h:82
Struct to store information about a specific tile in the map layer.
Definition: TmxMapTile.h:42
unsigned id
Id.
Definition: TmxMapTile.h:70
bool flippedHorizontally
True when the tile should be drawn flipped horizontally.
Definition: TmxMapTile.h:76