diff --git a/compileunits.h b/compileunits.h index c112033f..34ada0cb 100644 --- a/compileunits.h +++ b/compileunits.h @@ -80,15 +80,15 @@ bool inv::activating; #include "sound.cpp" #include "achievement.cpp" #include "barriers.cpp" -#include "bigstuff.cpp" +#include "surface.cpp" #if CAP_TOUR #include "tour.cpp" #endif -#include "surface.cpp" #if ISMOBILE==0 #include #endif #include "commandline.cpp" +#include "bigstuff.cpp" #endif #if IN_CU(1) diff --git a/dialogs.cpp b/dialogs.cpp index c1557471..8c553def 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -530,16 +530,7 @@ namespace dialog { reaction = reaction_t(); } - struct numberEditor { - ld *editwhat; - string s; - ld vmin, vmax, step, dft; - string title, help; - ld (*scale) (ld); - ld (*inverse_scale) (ld); - int *intval; ld intbuf; - bool positive; - } ne; + numberEditor ne; bool editingDetail() { return ne.editwhat == &geom3::highdetail || ne.editwhat == &geom3::middetail; diff --git a/hyper.h b/hyper.h index 88ea904f..4cc9f655 100644 --- a/hyper.h +++ b/hyper.h @@ -881,6 +881,10 @@ namespace rug { bool handlekeys(int sym, int uni); #endif + + void addTriangle(rugpoint *t1, rugpoint *t2, rugpoint *t3, ld len = 1); + rugpoint *addRugpoint(hyperpoint h, double dist); + void buildRug(); } #define HASLINEVIEW @@ -1314,6 +1318,19 @@ namespace dialog { double param; int position; }; + + struct numberEditor { + ld *editwhat; + string s; + ld vmin, vmax, step, dft; + string title, help; + ld (*scale) (ld); + ld (*inverse_scale) (ld); + int *intval; ld intbuf; + bool positive; + }; + + extern numberEditor ne; extern vector items; @@ -2905,3 +2922,20 @@ namespace surface { } #endif + +struct stringpar { + string v; + stringpar(string s) : v(s) { } + stringpar(const char* s) : v(s) { } + stringpar(eMonster m) { v= minf[m].name; } + stringpar(eLand l) { v= linf[l].name; } + stringpar(eWall w) { v= winf[w].name; } + stringpar(eItem i) { v= iinf[i].name; } + }; + +string XLAT(string x); +string XLAT(string x, stringpar p1); +string XLAT(string x, stringpar p1, stringpar p2); +string XLAT(string x, stringpar p1, stringpar p2, stringpar p3); +string XLAT(string x, stringpar p1, stringpar p2, stringpar p3, stringpar p4); +string XLAT(string x, stringpar p1, stringpar p2, stringpar p3, stringpar p4, stringpar p5); diff --git a/language.cpp b/language.cpp index 113cc36b..0f9e936f 100644 --- a/language.cpp +++ b/language.cpp @@ -5,16 +5,6 @@ #define NUMLAN 7 -struct stringpar { - string v; - stringpar(string s) : v(s) { } - stringpar(const char* s) : v(s) { } - stringpar(eMonster m) { v= minf[m].name; } - stringpar(eLand l) { v= linf[l].name; } - stringpar(eWall w) { v= winf[w].name; } - stringpar(eItem i) { v= iinf[i].name; } - }; - const char *dnameof(eMonster m) { return minf[m].name; } const char *dnameof(eLand l) { return linf[l].name; } const char *dnameof(eWall w) { return winf[w].name; } diff --git a/rug.cpp b/rug.cpp index d34423c4..f779ef31 100644 --- a/rug.cpp +++ b/rug.cpp @@ -304,7 +304,7 @@ void add_anticusp_edge(rugpoint *e1, rugpoint *e2, ld len = 1) { e.target = e1; e2->anticusp_edges.push_back(e); } -void addTriangle(rugpoint *t1, rugpoint *t2, rugpoint *t3, ld len = 1) { +void addTriangle(rugpoint *t1, rugpoint *t2, rugpoint *t3, ld len) { addEdge(t1->getglue(), t2->getglue(), len); addEdge(t2->getglue(), t3->getglue(), len); addEdge(t3->getglue(), t1->getglue(), len);