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

Function digexp

plugins/dig.cpp:1241–1416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1239};
1240
1241command_result digexp (color_ostream &out, vector <string> & parameters)
1242{
1243 bool force_help = false;
1244 static explo_how how = EXPLO_NOTHING;
1245 static explo_what what = EXPLO_HIDDEN;
1246 int32_t priority = parse_priority(out, parameters);
1247
1248 for(size_t i = 0; i < parameters.size();i++)
1249 {
1250 if(parameters[i] == "help" || parameters[i] == "?")
1251 {
1252 force_help = true;
1253 }
1254 else if(parameters[i] == "all")
1255 {
1256 what = EXPLO_ALL;
1257 }
1258 else if(parameters[i] == "hidden")
1259 {
1260 what = EXPLO_HIDDEN;
1261 }
1262 else if(parameters[i] == "designated")
1263 {
1264 what = EXPLO_DESIGNATED;
1265 }
1266 else if(parameters[i] == "diag5")
1267 {
1268 how = EXPLO_DIAG5;
1269 }
1270 else if(parameters[i] == "diag5r")
1271 {
1272 how = EXPLO_DIAG5R;
1273 }
1274 else if(parameters[i] == "clear")
1275 {
1276 how = EXPLO_CLEAR;
1277 }
1278 else if(parameters[i] == "ladder")
1279 {
1280 how = EXPLO_LADDER;
1281 }
1282 else if(parameters[i] == "ladderr")
1283 {
1284 how = EXPLO_LADDERR;
1285 }
1286 else if(parameters[i] == "cross")
1287 {
1288 how = EXPLO_CROSS;
1289 }
1290 }
1291 if(force_help || how == EXPLO_NOTHING)
1292 {
1293 out.print(
1294 "This command can be used for exploratory mining.\n"
1295 "http://dwarffortresswiki.org/Exploratory_mining\n"
1296 "\n"
1297 "There are two variables that can be set: pattern and filter.\n"
1298 "Patterns:\n"

Callers

nothing calls this directly

Calls 9

parse_priorityFunction · 0.85
stamp_patternFunction · 0.85
tileMaterialFunction · 0.85
isWallTerrainFunction · 0.85
tiletypeAtMethod · 0.80
setDesignationAtMethod · 0.80
WriteAllMethod · 0.80
sizeMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected