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

Function isTreeTile

plugins/siege-engine.cpp:899–907  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897}
898
899static bool isTreeTile(df::coord pos)
900{
901 auto ptile = Maps::getTileType(pos);
902
903 return ptile &&
904 (tileShape(*ptile) == tiletype_shape::BRANCH ||
905 tileShape(*ptile) == tiletype_shape::TRUNK_BRANCH ||
906 tileShape(*ptile) == tiletype_shape::TWIG);
907}
908
909static bool adjustToTarget(EngineInfo *engine, df::coord *pos)
910{

Callers 1

computeMethod · 0.85

Calls 2

getTileTypeFunction · 0.85
tileShapeFunction · 0.85

Tested by

no test coverage detected