mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	moved ctof to pattern2
This commit is contained in:
		
							
								
								
									
										16
									
								
								graph.cpp
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								graph.cpp
									
									
									
									
									
								
							| @@ -205,22 +205,6 @@ void drawSpeed(const transmatrix& V) { | ||||
| #endif | ||||
|   } | ||||
|  | ||||
| EX int ctof(cell *c) { | ||||
|   #if CAP_IRR | ||||
|   if(IRREGULAR) return irr::ctof(c); | ||||
|   #endif | ||||
|   if(PURE) return 1; | ||||
|   // if(euclid) return 0; | ||||
|   if(!c) return 1; | ||||
|   if(binarytiling) return c->type == 7; | ||||
|   return ishept(c) ? 1 : 0; | ||||
|   // c->type == 6 ? 0 : 1; | ||||
|   } | ||||
|  | ||||
| int ctof012(cell *c) { | ||||
|   return ishept(c)?1:ishex1(c)?0:2; | ||||
|   } | ||||
|  | ||||
| void drawSafety(const transmatrix& V, int ct) { | ||||
| #if CAP_QUEUE | ||||
|   ld ds = ptick(50); | ||||
|   | ||||
							
								
								
									
										16
									
								
								pattern2.cpp
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								pattern2.cpp
									
									
									
									
									
								
							| @@ -4,6 +4,22 @@ | ||||
|  | ||||
| namespace hr { | ||||
|  | ||||
| EX int ctof(cell *c) { | ||||
|   #if CAP_IRR | ||||
|   if(IRREGULAR) return irr::ctof(c); | ||||
|   #endif | ||||
|   if(PURE) return 1; | ||||
|   // if(euclid) return 0; | ||||
|   if(!c) return 1; | ||||
|   if(binarytiling) return c->type == 7; | ||||
|   return ishept(c) ? 1 : 0; | ||||
|   // c->type == 6 ? 0 : 1; | ||||
|   } | ||||
|  | ||||
| EX int ctof012(cell *c) { | ||||
|   return ishept(c)?1:ishex1(c)?0:2; | ||||
|   } | ||||
|  | ||||
| int gp_threecolor() { | ||||
|   if(!GOLDBERG) return 0; | ||||
|   #if CAP_GP | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue