1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

moved ctof to pattern2

This commit is contained in:
Zeno Rogue 2019-08-10 00:11:11 +02:00
parent 245ee5878f
commit 19a01caf55
2 changed files with 16 additions and 16 deletions

View File

@ -205,22 +205,6 @@ void drawSpeed(const transmatrix& V) {
#endif #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) { void drawSafety(const transmatrix& V, int ct) {
#if CAP_QUEUE #if CAP_QUEUE
ld ds = ptick(50); ld ds = ptick(50);

View File

@ -4,6 +4,22 @@
namespace hr { 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() { int gp_threecolor() {
if(!GOLDBERG) return 0; if(!GOLDBERG) return 0;
#if CAP_GP #if CAP_GP