libtmx  0.4.0
an C++11 library for reading TMX files
Public Member Functions | List of all members
tmx::Cell Class Reference

A cell is a square on a map layer that is filled with a tile. More...

#include <tmx/Cell.h>

Public Member Functions

 Cell (unsigned gid, bool hflip=false, bool vflip=false, bool dflip=false)
 Cell constructor. More...
 
unsigned getGID () const noexcept
 Get the global id of the tile. More...
 
bool isHorizontallyFlipped () const noexcept
 Tell whether the tile must be flipped horizontally. More...
 
bool isVerticallyFlipped () const noexcept
 Tell whether the tile must be flipped vertically. More...
 
bool isDiagonallyFlipped () const noexcept
 Tell whether the tile must be flipped diagonally. More...
 

Detailed Description

A cell is a square on a map layer that is filled with a tile.

Constructor & Destructor Documentation

tmx::Cell::Cell ( unsigned  gid,
bool  hflip = false,
bool  vflip = false,
bool  dflip = false 
)
inline

Cell constructor.

Member Function Documentation

unsigned tmx::Cell::getGID ( ) const
inlinenoexcept

Get the global id of the tile.

Returns
the global id of the tile.
bool tmx::Cell::isDiagonallyFlipped ( ) const
inlinenoexcept

Tell whether the tile must be flipped diagonally.

Returns
true if the tile must be flipped diagonally
bool tmx::Cell::isHorizontallyFlipped ( ) const
inlinenoexcept

Tell whether the tile must be flipped horizontally.

Returns
true if the tile must be flipped horizontally
bool tmx::Cell::isVerticallyFlipped ( ) const
inlinenoexcept

Tell whether the tile must be flipped vertically.

Returns
true if the tile must be flipped vertically