MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / forEachTile

Method forEachTile

source/game/StarDungeonTMXPart.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace Dungeon {
16
17 bool TMXMap::forEachTile(TileCallback const& callback) const {
18 for (auto const& layer : tileLayers()) {
19 if (layer->forEachTile(this, callback))
20 return true;
21 }
22
23 for (auto const& group : objectGroups()) {
24 if (group->forEachTile(this, callback))
25 return true;
26 }
27
28 return false;
29 }
30
31 bool TMXTileLayer::forEachTile(TMXMap const* map, TileCallback const& callback) const {
32 auto const& tilesets = map->tilesets();

Callers 2

generateMethod · 0.45
grepTileLayerFunction · 0.45

Calls 10

yMinMethod · 0.80
yMaxMethod · 0.80
xMinMethod · 0.80
xMaxMethod · 0.80
xMethod · 0.80
yMethod · 0.80
heightMethod · 0.45
centerMethod · 0.45
minMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected