MCPcopy Create free account
hub / github.com/SimHacker/micropolis / getMapTile

Method getMapTile

MicropolisCore/src/MicropolisEngine/src/tool.h:151–154  ·  view source on GitHub ↗

* Get the tile of a map position. * @param pos Position being queried. * @return Tile at the specified position. * * @pre Position must be within map limits */

Source from the content-addressed store, hash-verified

149 * @pre Position must be within map limits
150 */
151inline MapTile ToolEffects::getMapTile(const Position& pos) const
152{
153 return this->getMapValue(pos) & LOMASK;
154}
155
156/**
157 * Get the tile of a map position.

Callers 10

layRoadMethod · 0.80
layRailMethod · 0.80
layWireMethod · 0.80
fixSingleMethod · 0.80
putDownNetworkMethod · 0.80
putDownWaterMethod · 0.80
putDownLandMethod · 0.80
prepareBuildingSiteMethod · 0.80
putRubbleMethod · 0.80
bulldozerToolMethod · 0.80

Calls 2

getMapValueMethod · 0.95
PositionClass · 0.70

Tested by

no test coverage detected