#include <tilemap.h>
◆ TileMap()
| TileMap::TileMap |
( |
QSize |
mapSize, |
|
|
bool |
isIndoors, |
|
|
bool |
hasCeiling, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ clear()
◆ clearTile()
| void TileMap::clearTile |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
inline |
◆ contains()
| bool TileMap::contains |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
◆ cTileAt()
| const Tile & TileMap::cTileAt |
( |
int |
x, |
|
|
int |
y |
|
) |
| const |
◆ cTiles()
| const Array2D<QSharedPointer<Tile> >& TileMap::cTiles |
( |
| ) |
const |
|
inline |
◆ defaultTileTemplateSet()
◆ getArray2D()
| const Array2D< QSharedPointer< Tile > > & TileMap::getArray2D |
( |
| ) |
const |
Returns a representation of this map as an Array2D.
Useful to access special Array2D iterators.
- Returns
- An Array2D such that arr(x, y) == tileAt(x, y)
◆ hasCeiling()
| bool TileMap::hasCeiling |
( |
| ) |
const |
|
inline |
◆ height()
| int TileMap::height |
( |
| ) |
const |
|
inline |
◆ isIndoor()
| bool TileMap::isIndoor |
( |
| ) |
const |
|
inline |
◆ isTileTemplateSetUsed()
tileTemplateSetUsed Returns true if some tile in the map uses any of the tileTemplates of the given set
- Parameters
-
| tileTemplateSet | The set to check |
◆ isTileTemplateUsed()
| bool TileMap::isTileTemplateUsed |
( |
TileTemplate * |
tileTemplate | ) |
|
tileTemplateUsed Returns true if some tile in the map uses this tileTemplate
- Parameters
-
| tileTemplate | The tile template to check. |
◆ mapChanged
| void TileMap::mapChanged |
( |
| ) |
|
|
signal |
◆ mapSize()
| QSize TileMap::mapSize |
( |
| ) |
const |
|
inline |
◆ removingTileTemplate()
| void TileMap::removingTileTemplate |
( |
TileTemplate * |
tileTemplate | ) |
|
removeTileTemplate Called when a tileTemplate is going to be removed. Any tiles using template will be cleared.
- Parameters
-
◆ removingTileTemplateSet()
removingTileTemplateSet Called when a tileTemplateSet is going to be removed. Any tiles using templates from the set will be cleared.
- Parameters
-
◆ resized
| void TileMap::resized |
( |
| ) |
|
|
signal |
◆ resizeMap()
| void TileMap::resizeMap |
( |
QSize |
newSize | ) |
|
resizeMap
Changes the size of the map. If the size is reduced, tiles will be lost (resizes around top left corner)
- Parameters
-
◆ savePath()
| const QString TileMap::savePath |
( |
| ) |
const |
|
inline |
◆ setSavePath()
| void TileMap::setSavePath |
( |
QString |
path | ) |
|
|
inline |
◆ setTile()
| void TileMap::setTile |
( |
int |
x, |
|
|
int |
y, |
|
|
TileTemplate * |
tileTemplate |
|
) |
| |
◆ tileAt()
| Tile & TileMap::tileAt |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
◆ tileChanged
| void TileMap::tileChanged |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
signal |
◆ tilePinged
| void TileMap::tilePinged |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
|
slot |
◆ tilePositionsUsingTemplate()
| QVector< QPoint > TileMap::tilePositionsUsingTemplate |
( |
TileTemplate * |
tileTemplate | ) |
|
tilePositionsUsingTemplate Finds the positions of all the tiles using a given TileTemplate.
- Parameters
-
| tileTemplate | The tile template. |
- Returns
- The positions of the tiles that use tileTemplate.
◆ tilePositionsUsingTemplateSet()
| QVector< QPoint > TileMap::tilePositionsUsingTemplateSet |
( |
TileTemplateSet * |
tileTemplateSet | ) |
|
tilePositionsUsingTemplateSet Finds the positions of all the tiles using a given TileTemplateSet.
- Parameters
-
| tileTemplateSet | The tile template set. |
- Returns
- The positions of the tiles that use tileTemplateSet.
◆ width()
| int TileMap::width |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: