From 2e066c106cadd1ebddbec68e26b518e967b2191e Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 27 Aug 2019 09:18:21 +0200 Subject: [PATCH] renamed gSL2 to gRotSpace --- classes.cpp | 2 +- classes.h | 2 +- geom-exp.cpp | 10 +++++----- landlock.cpp | 2 +- nonisotropic.cpp | 6 +++--- system.cpp | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/classes.cpp b/classes.cpp index 4d694b1d..7e144d13 100644 --- a/classes.cpp +++ b/classes.cpp @@ -585,7 +585,7 @@ vector ginf = { {"kd3", "none", "kite-and-dart on horospheres", "kd3", 12, 3, qsBP, giHyperb3, 0x48200, {{7, 3}}, eVariation::pure}, {"nil", "none", "Nil geometry", "nil", 6, 3, 0, giNil, 0x48600, {{7, 5}}, eVariation::pure}, {"product","none", "product space", "product", 7, 3, qHYBRID, giProduct, 0x48400, {{7, 3}}, eVariation::pure}, - {"twisted","none", "space of isometries", "twisted", 7, 3, qHYBRID, giSL2, 0x49000, {{6, 4}}, eVariation::pure}, + {"twisted","none", "rotation space", "twisted", 7, 3, qHYBRID, giSL2, 0x49000, {{6, 4}}, eVariation::pure}, }; // bits: 9, 10, 15, 16, (reserved for later) 17, 18 diff --git a/classes.h b/classes.h index 19693c27..c3ce6d37 100644 --- a/classes.h +++ b/classes.h @@ -214,7 +214,7 @@ enum eGeometry { gHoroTris, gHoroRec, gHoroHex, gField435, gField534, gBinary4, gSol, - gKiteDart2, gKiteDart3, gNil, gProduct, gSL2, + gKiteDart2, gKiteDart3, gNil, gProduct, gRotSpace, gGUARD}; enum eGeometryClass { gcHyperbolic, gcEuclid, gcSphere, gcSol, gcNil, gcProduct, gcSL2 }; diff --git a/geom-exp.cpp b/geom-exp.cpp index 820f683a..26fcef9c 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -398,7 +398,7 @@ vector list3d = { gCell24, gECell24, gCell16, gECell16, gCell8, gECell8, - gCell5, gKiteDart3, gSol, gNil, gProduct, gSL2 + gCell5, gKiteDart3, gSol, gNil, gProduct, gRotSpace }; void ge_select_tiling(const vector& lst) { @@ -418,8 +418,8 @@ void ge_select_tiling(const vector& lst) { if(cryst && !CAP_CRYSTAL) continue; if(geometry == gFieldQuotient && !CAP_FIELD) continue; dialog::addBoolItem(XLAT( - (geometry == gProduct && !on) ? XLAT("current geometry x E") : - (geometry == gSL2 && !on) ? XLAT("isometries of current geometry") : + (geometry == gProduct && !hybri) ? XLAT("current geometry x E") : + (geometry == gRotSpace && !hybri) ? XLAT("space of rotations in current geometry") : ginf[i].menu_displayed_name), on, letter++); dialog::lastItem().value += validclasses[land_validity(specialland).quality_level]; dialog::add_action(dual::mayboth([i] { @@ -434,12 +434,12 @@ void ge_select_tiling(const vector& lst) { pushScreen(arcm::show); #endif else dialog::do_if_confirmed([targetgeometry] () { - bool th = among(targetgeometry, gProduct, gSL2); + bool th = among(targetgeometry, gProduct, gRotSpace); if(th && (WDIM == 3 || euclid)) { addMessage(XLAT("Only works with 2D non-Euclidean geometries")); return; } - if(targetgeometry == gSL2) { + if(targetgeometry == gRotSpace) { bool ok = true; if(archimedean) ok = PURE; else if(binarytiling || penrose) ok = false; diff --git a/landlock.cpp b/landlock.cpp index 72568aaa..791f61b5 100644 --- a/landlock.cpp +++ b/landlock.cpp @@ -685,7 +685,7 @@ EX land_validity_t& land_validity(eLand l) { return lv::not_implemented; if(among(l, laReptile, laDragon, laTortoise)) return lv::bad_graphics; - if((hybrid::actual_geometry == gSL2 || geometry == gSL2) && l == laDryForest) + if((hybrid::actual_geometry == gRotSpace || geometry == gRotSpace) && l == laDryForest) return lv::hedgehogs; if(hybri) return *PIU(&land_validity(l)); } diff --git a/nonisotropic.cpp b/nonisotropic.cpp index da7705b2..c365ec6c 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -579,7 +579,7 @@ EX namespace hybrid { auto keep = ginf[g].menu_displayed_name; ginf[g] = ginf[underlying]; ginf[g].menu_displayed_name = keep; - if(g == gSL2) { + if(g == gRotSpace) { ginf[g].g = sph ? giSphere3 : giSL2; ginf[g].tiling_name = "Iso(" + ginf[g].tiling_name + ")"; string& qn = ginf[g].quotient_name; @@ -589,7 +589,7 @@ EX namespace hybrid { if(sph) ginf[g].flags |= qELLIPTIC; } else { - ginf[g].cclass = g == gSL2 ? gcSL2 : gcProduct; + ginf[g].cclass = g == gRotSpace ? gcSL2 : gcProduct; ginf[g].g.gameplay_dimension++; ginf[g].g.graphical_dimension++; ginf[g].tiling_name += "xZ"; @@ -1349,7 +1349,7 @@ EX namespace nisot { } else if(argis("-rotspace")) { PHASEFROM(2); - set_geometry(gSL2); + set_geometry(gRotSpace); return 0; } return 1; diff --git a/system.cpp b/system.cpp index bb0d597c..4596a379 100644 --- a/system.cpp +++ b/system.cpp @@ -1161,7 +1161,7 @@ EX void set_geometry(eGeometry target) { int old_DIM = GDIM; stop_game(); ors::reset(); - if(among(target, gProduct, gSL2)) hybrid::configure(target); + if(among(target, gProduct, gRotSpace)) hybrid::configure(target); geometry = target; if(chaosmode && bounded) chaosmode = false;