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

Method getMapValue

MicropolisCore/src/MicropolisEngine/src/tool.h:194–197  ·  view source on GitHub ↗

* Get the value of a map position. * @param x Horizontal coordinate of position being queried. * @param y Vertical coordinate of position being queried. * @return Map value at the specified position. * * @pre Position must be within map limits */

Source from the content-addressed store, hash-verified

192 * @pre Position must be within map limits
193 */
194inline MapValue ToolEffects::getMapValue(int x, int y) const
195{
196 return this->getMapValue(Position(x, y));
197}
198
199/**
200 * Set a new map value.

Callers 6

getMapTileMethod · 0.95
smoothTreesAtMethod · 0.60
connectTileMethod · 0.60
layDozeMethod · 0.60
layWireMethod · 0.60
fixSingleMethod · 0.60

Calls 1

PositionClass · 0.70

Tested by

no test coverage detected