1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-08 05:16:00 +00:00

rulegen3:: validate_neighborhood

This commit is contained in:
Zeno Rogue
2022-08-18 17:58:08 +02:00
parent d6376bcaec
commit d571d2f1cb
2 changed files with 44 additions and 6 deletions

View File

@@ -96,7 +96,8 @@ static const flagtype w_r3_no_road_shortcuts = Flag(36); /*< consider all errors
/** these control the output */
EX flagtype rdebug_flags;
EX int r3_neighborhood_decision = 1; /* how far to build local for honeycombs */
EX int r3_neighborhood_decision = 1; /* how far to build local for honeycombs, for decision trees */
EX int r3_neighborhood_validate = 0; /* how far to build local for honeycombs, for validation */
EX flagtype flags = 0;
@@ -1406,6 +1407,7 @@ EX pair<int, int> get_code(twalker& cw) {
}
be_solid(c);
if(WDIM == 3) validate_neighborhood(cw.at);
twalker cd = c->dist == 0 ? twalker(c, 0) : get_parent_dir(cw);
if(cd.at != c) ufind(cw);
@@ -2506,6 +2508,7 @@ auto hooks = addHook(hooks_configfile, 100, [] {
param_i(max_ignore_time_pre, "max_ignore_time_pre");
param_i(max_ignore_time_post, "max_ignore_time_post");
param_i(r3_neighborhood_decision, "r3_neighborhood_decision");
param_i(r3_neighborhood_validate, "r3_neighborhood_validate");
});
EX void parse_treestate(arb::arbi_tiling& c, exp_parser& ep) {