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

Function isTargetableTile

plugins/siege-engine.cpp:892–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

890}
891
892static bool isTargetableTile(df::coord pos)
893{
894 auto ptile = Maps::getTileType(pos);
895
896 return ptile && FlowPassable(*ptile) && !isOpenTerrain(*ptile);
897}
898
899static bool isTreeTile(df::coord pos)
900{

Callers 2

adjustToTargetFunction · 0.85
aimAtPointMethod · 0.85

Calls 3

getTileTypeFunction · 0.85
FlowPassableFunction · 0.85
isOpenTerrainFunction · 0.85

Tested by

no test coverage detected