Fixed outlet points styled

- Every point the grader holds fixed, in the outlet zone or on the held lip, is styled as the pond outlet, so the reach carries its own fixed set
- The tongue check exempts an outlet column only on a fixed point, only when the outlet itself ends at the junction head and only when every step down is a cascade or waterfall
- Held outlet tests sit on a real pond lip, and an outlet with a perched unheld tail or an end above the junction is reported
- A shore-held outlet test covers the outlet style past the 8-block outlet zone
This commit is contained in:
Brian Neumann-Fopiano committed 2026-11-01 21:15:19 -05:00
1 parent 358f7218f8
commit 5948c5b5f4
6 files changed
+123 -29

No files matched your search

@@ -51,7 +51,7 @@ public final class ConfluenceGrader {
for (int feeder : downstream.incoming) {
ReachDraft draft = drafts.get(feeder);
requireJunction(window, draft, downstream);
boolean[] fixed = fixed(draft);
boolean[] fixed = draft.fixed();
int waterfallMinimumDrop = draft.tier.waterfallMinimumDrop();
int[] settled = settle(footprint(draft), draft.grade, fixed, receiving(drafts, downstream, feeder), downstream.grade[0],
waterfallMinimumDrop);
@@ -150,16 +150,6 @@ public final class ConfluenceGrader {
return new Footprint(draft.xs, draft.zs, draft.halfWidth);
}
private static boolean[] fixed(ReachDraft draft) {
boolean[] fixed = draft.outletZone.clone();
if (draft.held != null) {
for (int point = 0; point < fixed.length; point++) {
fixed[point] |= draft.held[point];
}
}
return fixed;
}
private static List<Footprint> receiving(List<ReachDraft> drafts, ReachDraft downstream, int feeder) {
List<Footprint> receiving = new ArrayList<>(downstream.incoming.length);
receiving.add(footprint(downstream));
@@ -46,4 +46,14 @@ final class ReachDraft {
int last() {
return grade[grade.length - 1];
}
boolean[] fixed() {
boolean[] fixed = outletZone.clone();
if (held != null) {
for (int point = 0; point < fixed.length; point++) {
fixed[point] |= held[point];
}
}
return fixed;
}
}
@@ -380,7 +380,7 @@ public final class ReachShaper {
}
private static void restyle(ReachDraft draft) {
draft.style = styles(draft.grade, draft.ocean, draft.outletZone, draft.tier.waterfallMinimumDrop());
draft.style = styles(draft.grade, draft.ocean, draft.fixed(), draft.tier.waterfallMinimumDrop());
}
private static void chaikin(ReachDraft draft) {