MCPcopy Create free account
hub / github.com/DFHack/dfhack / getTileStatus

Function getTileStatus

plugins/siege-engine.cpp:1101–1108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1099}
1100
1101static std::string getTileStatus(df::building_siegeenginest *bld, df::coord tile_pos)
1102{
1103 auto engine = find_engine(bld, true);
1104 if (!engine)
1105 return "invalid";
1106
1107 return target_tile_type_names[calcTileStatus(engine, tile_pos)];
1108}
1109
1110static void paintAimScreen(df::building_siegeenginest *bld, df::coord view, df::coord2d ltop, df::coord2d size)
1111{

Callers

nothing calls this directly

Calls 2

find_engineFunction · 0.85
calcTileStatusFunction · 0.85

Tested by

no test coverage detected