Skip to content

A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.

Map: Revivim is drawn as the walled Negev lookout it was, its tower in a corner of the yard (refs #32) (#825)

Beri0fbe72470bcf
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7e6141bf9..e799ec64d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -128,6 +128,11 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIB
(Q-CUT-8). Every golden moves; the cutover re-pins them once.
### Added
+- Map: Revivim, the one Negev outpost on the map, is drawn as the walled lookout it was in 1943-48 (refs #32), not as a
+ moshava's red-roofed houses round a water tower. The three lookouts were built to one plan (he.wiki "שלושת המצפים"):
+ a square yard closed by a wall, a lookout tower in its corner, the living quarters along one side and the service
+ buildings along another. The larger living building is Revivim's kibbutz dining hall (he.wiki "רביבים": the fortress
+ held "חדר אוכל"). `SettlementKits.Outpost.cs`; `NegevOutpostKitTests`.
- A Settings screen, opened from a gear at the foot of the left column (refs #40, first slice). Its first option turns
the tilt-shift blur off and on, at once; the choice is kept per browser in `/idbfs/statecraft-settings/settings.txt`
(a fixed folder, as the autosave's), never in the sim or the save, so the goldens do not move. `?notiltshift` still
diff --git a/unity/Assets/Scripts/Map/Kits/SettlementKits.Landmarks.cs b/unity/Assets/Scripts/Map/Kits/SettlementKits.Landmarks.cs
index 74dc53136..52eb17eb7 100644
--- a/unity/Assets/Scripts/Map/Kits/SettlementKits.Landmarks.cs
+++ b/unity/Assets/Scripts/Map/Kits/SettlementKits.Landmarks.cs
@@ -15,6 +15,7 @@ namespace Statecraft.Game.Map.Kits
var arch = ArchetypeOf(s);
float R = FootprintRadiusM(s, ground.HexSizeM);
var heart = DryNear(centre, ground, R * 0.3f, ref rnd);
+ if (NegevOutpost(s)) return NegevOutpostKit(s, heart, ground, km, lots); // a Negev lookout's yard (#32)
switch (s.Id)
{
case "jaffa": return Jaffa(s, heart, ground, km, lots, ref rnd);
diff --git a/unity/Assets/Scripts/Map/Kits/SettlementKits.Outpost.cs b/unity/Assets/Scripts/Map/Kits/SettlementKits.Outpost.cs
new file mode 100644
index 000000000..b161d1707
--- /dev/null
+++ b/unity/Assets/Scripts/Map/Kits/SettlementKits.Outpost.cs
@@ -0,0 +1,77 @@
+#nullable enable
+using UnityEngine;
+
+namespace Statecraft.Game.Map.Kits
+{
+ /// <summary>The Negev outpost kit (issue #32): a lookout of 1943 is drawn as the walled yard it was, not as a moshava. The
+ /// basis is the Hebrew Wikipedia's "שלושת המצפים" (https://he.wikipedia.org/wiki/שלושת_המצפים, checked 2026-10-16): the
+ /// three lookouts (Gvulot, Revivim, Beit Eshel) were built to one plan, "חצר מרובעת מוקפת חומה, ובפינתה מגדל תצפית. בצלע
+ /// אחת של הריבוע מבני המגורים, ובצלע השנייה מבני השירות" (a square yard closed by a wall, a lookout tower in its corner,
+ /// the living quarters along one side of the square and the service buildings along another). Its "רביבים" article
+ /// (https://he.wikipedia.org/wiki/רביבים, same day) gives Revivim's 25 settlers one fortified building, "טירה שכללה חדרים,
+ /// מטבח וחדר אוכל" (rooms, a kitchen and a dining hall), so the living side includes the dining room: the larger living
+ /// building is recorded as Revivim's dining hall, the one a kibbutz has (#820). The sizes and colours are modelling choices.</summary>
+ public static partial class SettlementKits
+ {
+ /// <summary>Whether <paramref name="s"/> is drawn as a Negev lookout. Revivim is the only one on the map: Gvulot and Beit
+ /// Eshel, and the eleven points of 1946, have no row in content/map/.</summary>
+ static bool NegevOutpost(Settlement s) => s.Id == "revivim";
+
+ /// <summary>The yard's side and its wall's height and thickness (real m, at the house scale).</summary>
+ const float OutpostSide = 22f, OutpostWallH = 2.6f, OutpostWallT = 0.7f;
+
+ /// <summary>A Negev lookout at <paramref name="heart"/>, on the settlement's grid angle: the walled yard with its gate,
+ /// the lookout tower in one corner, the living quarters along the opposite side and the service buildings along a
+ /// third, all flat-roofed. One lot for the whole yard; nothing is built when no free dry spot takes it. Returns how
+ /// many things were built (the yard, the tower and the four buildings, or 0).</summary>
+ static int NegevOutpostKit(Settlement s, Vector2 heart, KitGround ground, KitMesh km, Lots lots)
+ {
+ float m = KitScale.Houses, side = OutpostSide * m, half = 0.5f * side;
+ if (!Claim(lots, heart, half * 1.4142f, s.Id, ground, out var c)) return 0;
+ float yaw = GridYaw(s.Id), a = yaw * Mathf.Deg2Rad, ca = Mathf.Cos(a), sa = Mathf.Sin(a);
+ Vector2 At(float u, float v) => c + new Vector2(u * ca - v * sa, u * sa + v * ca) * m;
+ var stone = C(0.80f, 0.74f, 0.63f); var concrete = C(0.86f, 0.84f, 0.79f); var roof = C(0.72f, 0.70f, 0.66f);
+ // The wall: four sides, the +v one broken by the gate (3 m wide, on the -u side of the middle).
+ float h = 0.5f * OutpostSide, t = OutpostWallT;
+ var pieces = new (float u, float v, float w, float d)[]
+ {
+ (0f, -h + 0.5f * t, OutpostSide, t), (-h + 0.5f * t, 0f, t, OutpostSide), (h - 0.5f * t, 0f, t, OutpostSide),
+ (-7.5f, h - 0.5f * t, 7f, t), (5f, h - 0.5f * t, 12f, t),
+ };
+ foreach (var (u, v, w, d) in pieces)
+ {
+ var p = At(u, v);
+ var (bottom, top) = GroundSpan(p, yaw, w * m, d * m, ground, m);
+ km.Box(p.x, p.y, yaw, w * m, d * m, bottom, top, OutpostWallH * m, stone, stone, Facade.Plain, m);
+ }
+ Record(s.Id, "outpost_yard", c, yaw, side, side, OutpostWallH * m, stone);
+ // The lookout tower in the yard's (+u, +v) corner: three storeys under a slightly wider cap.
+ {
+ var p = At(h - 2f, h - 2f); float w = 4f * m, th = 9.5f * m;
+ var (bottom, top) = GroundSpan(p, yaw, w, w, ground, m);
+ km.Box(p.x, p.y, yaw, w, w, bottom, top, th, stone, roof, Facade.Stone, m);
+ km.Box(p.x, p.y, yaw, w * 1.08f, w * 1.08f, top + th, top + th, 1f * m, stone, roof, Facade.Plain, m);
+ Record(s.Id, "lookout_tower", p, yaw, w, w, th + 1f * m, stone);
+ }
+ // The living quarters along the -v side, the service buildings along the -u side: one storey, flat
+ // roofs, the living rooms' small windows. Inside the wall, clear of each other and of the tower.
+ float inner = h - t;
+ var rooms = new (float u, float v, float w, float d, bool living)[]
+ {
+ (-1.1f, -inner + 2.4f, 9f, 4.8f, true), (6.9f, -inner + 2.4f, 6f, 4.8f, true),
+ (-inner + 2.1f, -5.2f, 4.2f, 6f, false), (-inner + 2.1f, 1.6f, 4.2f, 6f, false),
+ };
+ for (int i = 0; i < rooms.Length; i++)
+ {
+ var (u, v, w, d, living) = rooms[i];
+ var p = At(u, v); float bh = 3.3f * m;
+ var (bottom, top) = GroundSpan(p, yaw, w * m, d * m, ground, m);
+ km.Box(p.x, p.y, yaw, w * m, d * m, bottom, top, bh, concrete, roof, living ? Facade.Village : Facade.Plain, m);
+ // The first, larger living building holds the fortress's "חדר אוכל" (the source above): Revivim's one dining hall.
+ Record(s.Id, i == 0 ? "dining_hall" : "building", p, yaw, w * m, d * m, bh, concrete);
+ if (i == 0) kibbutzHalls++;
+ }
+ return 2 + rooms.Length;
+ }
+ }
+}
diff --git a/unity/Assets/Scripts/Map/Kits/SettlementKits.Outpost.cs.meta b/unity/Assets/Scripts/Map/Kits/SettlementKits.Outpost.cs.meta
new file mode 100644
index 000000000..c1e8a7dbd
--- /dev/null
+++ b/unity/Assets/Scripts/Map/Kits/SettlementKits.Outpost.cs.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: d36b0035448dd66a29b6f58d62b15eb5
\ No newline at end of file
diff --git a/unity/Assets/Scripts/Map/Kits/SettlementKits.cs b/unity/Assets/Scripts/Map/Kits/SettlementKits.cs
index 45d3d69f8..3a359b60e 100644
--- a/unity/Assets/Scripts/Map/Kits/SettlementKits.cs
+++ b/unity/Assets/Scripts/Map/Kits/SettlementKits.cs
@@ -198,7 +198,10 @@ namespace Statecraft.Game.Map.Kits
continue;
}
var km = townMeshes[s.Id];
- int n = landmarks[s.Id] + PlaceHouses(s, centres[s.Id], ground, km, lots, ref rnd, merged, out var scatter, out var palms); // towns round 2: plot lattices
+ // A Negev lookout's buildings stand in its walled yard, a landmark (SettlementKits.Outpost.cs, #32): no houses round it.
+ System.Func<int>? scatter = null, palms = null;
+ int n = landmarks[s.Id] + (NegevOutpost(s) ? 0
+ : PlaceHouses(s, centres[s.Id], ground, km, lots, ref rnd, merged, out scatter, out palms)); // towns round 2: plot lattices
gameTowns.Add((s, km, n, scatter, palms));
}
// The dune coasts' extra sand yields to the places' own ground (BeachBands, option (c)); a camp is not a place, so
diff --git a/unity/Assets/Tests/EditMode/KibbutzKitTests.cs b/unity/Assets/Tests/EditMode/KibbutzKitTests.cs
index d88f895c8..9ec3f9d72 100644
--- a/unity/Assets/Tests/EditMode/KibbutzKitTests.cs
+++ b/unity/Assets/Tests/EditMode/KibbutzKitTests.cs
@@ -72,6 +72,9 @@ public class KibbutzKitTests
TestContext.WriteLine(line); Debug.Log(line);
Assert.LessOrEqual(built.KibbutzHalls, kibbutzim, "one dining hall per kibbutz at most");
Assert.GreaterOrEqual(built.KibbutzHalls, kibbutzim - 2, "nearly every kibbutz builds its dining hall (6 of 8 measured)");
- Assert.GreaterOrEqual(built.FarmSheds, kibbutzim, "the farm yards hold sheds (9 measured for the 8 kibbutzim)");
+ // Revivim (type kibbutz) is drawn as the walled Negev lookout of 1943 (#32, SettlementKits.Outpost.cs): its yard holds
+ // living and service buildings, no farm yard, so it builds no sheds and the floor counts the other kibbutzim.
+ int farms = kibbutzim - map.Settlements.Count(s => s.Id == "revivim" && s.Type == "kibbutz");
+ Assert.GreaterOrEqual(built.FarmSheds, farms, "the farm yards hold sheds (7 measured for the 7 kibbutzim with a farm yard)");
}
}
diff --git a/unity/Assets/Tests/EditMode/NegevOutpostKitTests.cs b/unity/Assets/Tests/EditMode/NegevOutpostKitTests.cs
new file mode 100644
index 000000000..b7e1ebf5d
--- /dev/null
+++ b/unity/Assets/Tests/EditMode/NegevOutpostKitTests.cs
@@ -0,0 +1,79 @@
+#nullable enable
+using System.Collections.Generic;
+using System.Linq;
+using NUnit.Framework;
+using Statecraft.Game.Map;
+using Statecraft.Game.Map.Kits;
+using UnityEditor.SceneManagement;
+using UnityEngine;
+
+/// <summary>The Negev outpost kit (#32, SettlementKits.Outpost.cs): Revivim, one of the three lookouts of 1943, is drawn as
+/// the lookouts' walled square yard with a lookout tower in its corner and its buildings along two sides, not as a
+/// moshava's houses round a water tower.</summary>
+public class NegevOutpostKitTests
+{
+ [TearDown]
+ public void Restore()
+ {
+ EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);
+ VisualToggles.Clear();
+ KitScale.Reset();
+ }
+
+ /// <summary>Revivim has one walled yard and one lookout tower, the tower in a corner of the yard; its four buildings (main's
+ /// floor is three, TownCensusTests.MainBuildings) stand wholly inside the yard's wall, clear of each other and of the
+ /// tower, and it has no water tower. No other game settlement has a yard or a lookout tower.</summary>
+ [Test]
+ public void RevivimIsAWalledLookoutWithItsTowerInACorner()
+ {
+ EditorSceneManager.OpenScene("Assets/Map.unity", OpenSceneMode.Single);
+ var map = Object.FindFirstObjectByType<MapScene>(); map.Build();
+ TownCensusTests.Census(map, out var placed);
+ var bad = new List<string>();
+ foreach (var p in placed.Where(p => (p.Kind == "outpost_yard" || p.Kind == "lookout_tower") && p.Id != "revivim"))
+ bad.Add($"{p.Id}: {p.Kind}");
+ var mine = placed.Where(p => p.Id == "revivim").ToList();
+ TestContext.WriteLine(string.Join("\n", mine.Select(p => $"{p.Kind} at {p.C} yaw {p.Yaw:0} {p.W:0}x{p.D:0} h {p.H:0}")));
+ var yards = mine.Where(p => p.Kind == "outpost_yard").ToList();
+ var towers = mine.Where(p => p.Kind == "lookout_tower").ToList();
+ Assert.AreEqual(1, yards.Count, "Revivim's walled yard");
+ Assert.AreEqual(1, towers.Count, "Revivim's lookout tower");
+ var yard = yards[0];
+ // The tower's centre sits within a tower's width of one of the yard's corners.
+ var (tu, tv) = Local(yard, towers[0].C);
+ float cornerGap = new Vector2(yard.W * 0.5f - Mathf.Abs(tu), yard.D * 0.5f - Mathf.Abs(tv)).magnitude;
+ if (cornerGap > towers[0].W) bad.Add($"the tower stands {cornerGap:0} m from the yard's nearest corner");
+ // The larger living building is recorded as the dining hall (the fortress's "חדר אוכל"; a kibbutz has one, #820).
+ Assert.AreEqual(1, mine.Count(p => p.Kind == "dining_hall"), "Revivim's dining hall, on the living side");
+ var houses = mine.Where(p => p.Kind == "building" || p.Kind == "dining_hall").ToList();
+ Assert.AreEqual(4, houses.Count, "two living and two service buildings");
+ Assert.GreaterOrEqual(houses.Count, TownCensusTests.MainBuildings["revivim"], "main's floor");
+ // Every building inside the wall's inner face (the wall is 0.7 m thick at the house scale), on the yard's own axes.
+ float inner = 0.5f * yard.W - 0.7f * KitScale.Houses + 1f;
+ foreach (var h in houses)
+ {
+ var (u, v) = Local(yard, h.C);
+ if (Mathf.Abs(h.Yaw - yard.Yaw) > 0.01f) bad.Add($"a building at {h.C} not square to the yard");
+ if (Mathf.Abs(u) + 0.5f * h.W > inner || Mathf.Abs(v) + 0.5f * h.D > inner) bad.Add($"a building through the wall at {h.C}");
+ }
+ // No two of the buildings and the tower overlap (boxes on the yard's axes, 1 m tolerance).
+ var boxes = houses.Append(towers[0]).ToList();
+ for (int i = 0; i < boxes.Count; i++)
+ for (int j = i + 1; j < boxes.Count; j++)
+ {
+ var (ui, vi) = Local(yard, boxes[i].C); var (uj, vj) = Local(yard, boxes[j].C);
+ if (Mathf.Abs(ui - uj) < 0.5f * (boxes[i].W + boxes[j].W) - 1f && Mathf.Abs(vi - vj) < 0.5f * (boxes[i].D + boxes[j].D) - 1f)
+ bad.Add($"{boxes[i].Kind} at {boxes[i].C} overlaps {boxes[j].Kind} at {boxes[j].C}");
+ }
+ if (mine.Any(p => p.Kind == "water_tower")) bad.Add("Revivim still has a moshava's water tower");
+ CollectionAssert.IsEmpty(bad);
+ }
+
+ /// <summary><paramref name="p"/> in <paramref name="frame"/>'s own axes (KitMesh.Box's yaw), from its centre.</summary>
+ static (float u, float v) Local(SettlementKits.Placed frame, Vector2 p)
+ {
+ float a = frame.Yaw * Mathf.Deg2Rad, ca = Mathf.Cos(a), sa = Mathf.Sin(a);
+ var d = p - frame.C;
+ return (d.x * ca + d.y * sa, -d.x * sa + d.y * ca);
+ }
+}
diff --git a/unity/Assets/Tests/EditMode/NegevOutpostKitTests.cs.meta b/unity/Assets/Tests/EditMode/NegevOutpostKitTests.cs.meta
new file mode 100644
index 000000000..c73c0af47
--- /dev/null
+++ b/unity/Assets/Tests/EditMode/NegevOutpostKitTests.cs.meta
@@ -0,0 +1,2 @@
+fileFormatVersion: 2
+guid: a28a81783445cfef2a5cc601fe82cafa
\ No newline at end of file
diff --git a/unity/Assets/Tests/EditMode/TownCensusTests.cs b/unity/Assets/Tests/EditMode/TownCensusTests.cs
index 36dea89fa..036a7de4c 100644
--- a/unity/Assets/Tests/EditMode/TownCensusTests.cs
+++ b/unity/Assets/Tests/EditMode/TownCensusTests.cs
@@ -132,7 +132,7 @@ public class TownCensusTests
}
/// <summary>Each city's landmarks are built (docs/visual-v1.md, "Towns round 2"); every other Arab or old town has its
- /// mosque, and every moshava, kibbutz and moshav its water tower.</summary>
+ /// mosque, and every moshava, kibbutz and moshav its water tower (Revivim, a Negev lookout, its yard and tower instead).</summary>
[Test]
public void EveryTownHasItsLandmarks()
{
@@ -145,6 +145,7 @@ public class TownCensusTests
["haifa"] = new[] { "port", "warehouse", "german_colony" },
["jerusalem"] = new[] { "walls", "gate", "citadel", "haram", "dome_of_the_rock", "al_aqsa" },
["ramla"] = new[] { "mosque", "white_tower" },
+ ["revivim"] = new[] { "outpost_yard", "lookout_tower" }, // a Negev lookout (#32), not a moshava
};
var missing = new List<string>();
foreach (var s in map.Settlements)