supertux
Public Member Functions | Public Attributes | List of all members
TileSelection Class Referencefinal

Public Member Functions

uint32_t pos (int x, int y)
 Returns the tile id at specific coordinates. More...
 
void set_tile (uint32_t tile)
 Sets the tile selection to a single tile. More...
 
void clear ()
 Clears the selection. More...
 
bool empty () const
 Returns true when has no tiles or is full of zeros.
 

Public Attributes

std::vector< uint32_t > m_tiles
 
int m_width
 
int m_height
 

Member Function Documentation

◆ clear()

void TileSelection::clear ( )

Clears the selection.

◆ pos()

uint32_t TileSelection::pos ( int  x,
int  y 
)

Returns the tile id at specific coordinates.

The coordinates might be bigger than the selection size or negative.

◆ set_tile()

void TileSelection::set_tile ( uint32_t  tile)

Sets the tile selection to a single tile.


The documentation for this class was generated from the following files: