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

Method queryTool

MicropolisCore/src/MicropolisEngine/src/tool.cpp:950–960  ·  view source on GitHub ↗

* Do query tool. * @param x X coordinate of the position of the query. * @param y Y coordinate of the position of the query. * @return Tool result. */

Source from the content-addressed store, hash-verified

948 * @return Tool result.
949 */
950ToolResult Micropolis::queryTool(short x, short y)
951{
952 if (!testBounds(x, y)) {
953 return TOOLRESULT_FAILED;
954 }
955
956 doZoneStatus(x, y);
957 didTool("Qry", x, y);
958
959 return TOOLRESULT_OK;
960}
961
962ToolResult Micropolis::bulldozerTool(short x, short y)
963{

Callers

nothing calls this directly

Calls 1

testBoundsFunction · 0.85

Tested by

no test coverage detected