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

Method points

plugins/devel/tiles.cpp:145–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 return "column";
144 }
145 coord_vec points(MapCache & mc, DFHack::DFCoord start)
146 {
147 coord_vec v;
148 bool juststarted = true;
149 while (mc.testCoord(start))
150 {
151 uint16_t tt = mc.tiletypeAt(start);
152 if(DFHack::LowPassable(tt) || juststarted && DFHack::HighPassable(tt))
153 {
154 v.push_back(start);
155 juststarted = false;
156 start.z++;
157 }
158 else break;
159 }
160 return v;
161 };
162};
163
164command_result df_tiles (Core * c, vector <string> & parameters);

Callers

nothing calls this directly

Calls 3

LowPassableFunction · 0.85
HighPassableFunction · 0.85
tiletypeAtMethod · 0.80

Tested by

no test coverage detected