mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
moved ctof to pattern2
This commit is contained in:
parent
245ee5878f
commit
19a01caf55
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
|
||||
|
Loading…
Reference in New Issue
Block a user