MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / addToDrawnTiles

Method addToDrawnTiles

game/state/tilemap/tileobject.cpp:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165void TileObject::addToDrawnTiles(Tile *tile)
166{
167 this->drawOnTile = tile;
168 int layer = map.getLayer(this->type);
169 this->drawOnTile->drawnObjects[layer].push_back(shared_from_this());
170 std::sort(this->drawOnTile->drawnObjects[layer].begin(),
171 this->drawOnTile->drawnObjects[layer].end(), TileObjectZComparer{});
172}
173
174} // namespace OpenApoc

Callers

nothing calls this directly

Calls 3

getLayerMethod · 0.80
endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected