mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	renamed 'truncated' to 'chamfered'
This commit is contained in:
		
							
								
								
									
										24
									
								
								geom-exp.cpp
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								geom-exp.cpp
									
									
									
									
									
								
							| @@ -10,7 +10,7 @@ string euchelp = | ||||
|   "You can try many different geometries here. We start by gluing " | ||||
|   "n-gons in such a way that k of them meet in every vertex. " | ||||
|   "Depending on n and k, this either folds into a sphere, unfolds into a plane, " | ||||
|   "or requires a hyperbolic space. The result may be then 'truncated' by " | ||||
|   "or requires a hyperbolic space. The result may be then 'chamfered' by " | ||||
|   "replacing each vertex by a 2k-gon. Furthermore, you can play " | ||||
|   "with quotient geometries. For example, the elliptic geometry is " | ||||
|   "obtained from the sphere by making the antipodes be the same point, " | ||||
| @@ -18,7 +18,7 @@ string euchelp = | ||||
|   "Have fun experimenting! " | ||||
|   "Achievements and leaderboards do not work in geometry experiments, " | ||||
|   "except some specific ones.\n\n" | ||||
|   "In standard geometry (truncated or not), you can play the full game, but in other geometries " | ||||
|   "In standard geometry (chamfered or not), you can play the full game, but in other geometries " | ||||
|   "you select a particular land. Lands are unlocked by visiting them in this " | ||||
|   "session, or permanently by collecting 25 treasure. Try Crossroads in Euclidean " | ||||
|   "or chaos mode in non-standard non-quotient hyperbolic to visit many lands. " | ||||
| @@ -41,7 +41,7 @@ void showQuotientConfig() { | ||||
|   nextPrimes(gxcur); | ||||
|   for(int i=0; i<size(gxcur.primes); i++) { | ||||
|     auto& p = gxcur.primes[i]; | ||||
|     dialog::addBoolItem(XLAT("order %1%2 (non-truncated cells: %3)", its(p.p), p.squared ? "²" : "", its(p.cells)), i == gxcur.current_prime_id, 'A'+i); | ||||
|     dialog::addBoolItem(XLAT("order %1%2 (non-chamfered cells: %3)", its(p.p), p.squared ? "²" : "", its(p.cells)), i == gxcur.current_prime_id, 'A'+i); | ||||
|     } | ||||
|    | ||||
|   if(size(gxcur.primes) < 6) { | ||||
| @@ -188,7 +188,7 @@ void showTorusConfig() { | ||||
|       torusconfig::sdx = torusconfig::newsdx; | ||||
|       torusconfig::sdy = torusconfig::newsdy; | ||||
|       torusconfig::activate(); | ||||
|       if((square && torus_chamfer) != nontruncated) restartGame('7', false, true); | ||||
|       if((square && torus_chamfer) != nonchamfered) restartGame('7', false, true); | ||||
|       targetgeometry = gTorus; restartGame('g', false, true); | ||||
|       } | ||||
|     else if(uni == 'c') { | ||||
| @@ -209,7 +209,7 @@ void showTorusConfig() { | ||||
|   dialog::display(); | ||||
|   } | ||||
|  | ||||
| string truncatenames[2] = {" (t)", " (n)"}; | ||||
| string chamfernames[2] = {" (c)", " (n)"}; | ||||
|  | ||||
| void showEuclideanMenu() { | ||||
|   cmode = sm::SIDE; | ||||
| @@ -235,7 +235,7 @@ void showEuclideanMenu() { | ||||
|     int ts = ginf[geometry].sides; | ||||
|     int tv = ginf[geometry].vertex; | ||||
|     int tq = ginf[geometry].quotientstyle; | ||||
|     int nom = (nontruncated ? tv : tv+ts) * ((tq & qELLIP) ? 2 : 4); | ||||
|     int nom = (nonchamfered ? tv : tv+ts) * ((tq & qELLIP) ? 2 : 4); | ||||
|     int denom = (2*ts + 2*tv - ts * tv); | ||||
|      | ||||
|     dialog::addSelItem(XLAT("land"), XLAT1(linf[specialland].name), '5'); | ||||
| @@ -247,18 +247,18 @@ void showEuclideanMenu() { | ||||
|     dialog::addBreak(50); | ||||
|    | ||||
|     if(ts == 6 && tv == 3) | ||||
|       dialog::addSelItem(XLAT("truncated"), XLAT("does not matter"), 't'); | ||||
|       dialog::addSelItem(XLAT("chamfered"), XLAT("does not matter"), 't'); | ||||
|     else | ||||
|       dialog::addBoolItem(XLAT("truncated"), !nontruncated, 't'); | ||||
|       dialog::addBoolItem(XLAT("chamfered"), !nonchamfered, 't'); | ||||
|    | ||||
|     dialog::addBreak(50); | ||||
|    | ||||
|     int worldsize = denom ? nom/denom : 0; | ||||
|     if(tq & qTORUS) worldsize = torusconfig::qty; | ||||
|     if(tq & qZEBRA) worldsize = nontruncated ? 12 : 40; | ||||
|     if(tq & qZEBRA) worldsize = nonchamfered ? 12 : 40; | ||||
|     if(tq & qFIELD) { | ||||
|       worldsize = size(currfp.matrices) / ts; | ||||
|       if(!nontruncated) worldsize = ((ts+tv)*worldsize) / tv; | ||||
|       if(!nonchamfered) worldsize = ((ts+tv)*worldsize) / tv; | ||||
|       } | ||||
|    | ||||
|     dialog::addSelItem(XLAT("sides per face"), its(ts), 0); | ||||
| @@ -339,7 +339,7 @@ void showEuclideanMenu() { | ||||
|           torusconfig::newsdx = torusconfig::sdx, | ||||
|           torusconfig::newsdy = torusconfig::sdy, | ||||
|           torusconfig::newmode = torusconfig::torus_mode, | ||||
|           torus_chamfer = nontruncated, | ||||
|           torus_chamfer = nonchamfered, | ||||
|           pushScreen(showTorusConfig); | ||||
|         if(quotient==2) pushScreen(showQuotientConfig); | ||||
|         } | ||||
| @@ -350,7 +350,7 @@ void showEuclideanMenu() { | ||||
|   else { | ||||
|     dialog::init(XLAT("experiment with geometry")); | ||||
|    | ||||
|     dialog::addSelItem(XLAT("geometry"), XLAT(ginf[geometry].name) + XLAT(truncatenames[nontruncated]), '5'); | ||||
|     dialog::addSelItem(XLAT("geometry"), XLAT(ginf[geometry].name) + XLAT(chamfernames[nonchamfered]), '5'); | ||||
|     dialog::addBreak(50); | ||||
|      | ||||
|     generateLandList(isLandValid); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue