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

Method tileIsValid

game/state/tilemap/tilemap.cpp:225–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223unsigned int TileMap::getLayerCount() const { return (unsigned)this->layerMap.size(); }
224
225bool TileMap::tileIsValid(int x, int y, int z) const
226{
227 if (z < 0 || z >= this->size.z || y < 0 || y >= this->size.y || x < 0 || x >= this->size.x)
228 return false;
229 return true;
230}
231
232bool TileMap::tileIsValid(Vec3<int> tile) const
233{

Callers 15

findShortestPathMethod · 0.80
fillRoadSegmentMapMethod · 0.80
dieMethod · 0.80
canEnterTileMethod · 0.80
canEnterTileMethod · 0.80
startMethod · 0.80
updateIdleMethod · 0.80
updateFallingMethod · 0.80
updateSlidingMethod · 0.80
generatePortalsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected