mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-12 12:20:26 +00:00
rv:: added some guards
This commit is contained in:
parent
e93187a81f
commit
d5e7f22073
@ -28,7 +28,6 @@
|
|||||||
#include "impossible-ring.cpp"
|
#include "impossible-ring.cpp"
|
||||||
#include "triangle.cpp"
|
#include "triangle.cpp"
|
||||||
#include "sumotron.cpp"
|
#include "sumotron.cpp"
|
||||||
#include "noniso-honeycombs.cpp"
|
|
||||||
#include "random-walk.cpp"
|
#include "random-walk.cpp"
|
||||||
#include "fifteen.cpp"
|
#include "fifteen.cpp"
|
||||||
#include "crystal-sokoban.cpp"
|
#include "crystal-sokoban.cpp"
|
||||||
@ -58,11 +57,14 @@
|
|||||||
#include "playing-with-impossibility.cpp"
|
#include "playing-with-impossibility.cpp"
|
||||||
#include "hyperbolic-minesweeper-pres.cpp"
|
#include "hyperbolic-minesweeper-pres.cpp"
|
||||||
#include "dhrg-pres.cpp"
|
#include "dhrg-pres.cpp"
|
||||||
|
#include "noniso-honeycombs.cpp"
|
||||||
#endif
|
#endif
|
||||||
#include "highdim-demo.cpp"
|
#include "highdim-demo.cpp"
|
||||||
#include "horo63.cpp"
|
#include "horo63.cpp"
|
||||||
#include "platformer.cpp"
|
#include "platformer.cpp"
|
||||||
|
#if CAP_RAY && MAXMDIM >= 4
|
||||||
#include "intra-demos.cpp"
|
#include "intra-demos.cpp"
|
||||||
|
#endif
|
||||||
#include "gobot.cpp"
|
#include "gobot.cpp"
|
||||||
#include "extra-projections.cpp"
|
#include "extra-projections.cpp"
|
||||||
#include "balloonsim.cpp"
|
#include "balloonsim.cpp"
|
||||||
|
@ -191,6 +191,7 @@ bool draw_snow(cell *c, const shiftmatrix& V) {
|
|||||||
|
|
||||||
string cap = "non-Euclidean snowballs/";
|
string cap = "non-Euclidean snowballs/";
|
||||||
|
|
||||||
|
#if CAP_RVSLIDES
|
||||||
void snow_slide(vector<tour::slide>& v, string title, string desc, reaction_t t) {
|
void snow_slide(vector<tour::slide>& v, string title, string desc, reaction_t t) {
|
||||||
using namespace tour;
|
using namespace tour;
|
||||||
v.push_back(
|
v.push_back(
|
||||||
@ -219,6 +220,7 @@ void snow_slide(vector<tour::slide>& v, string title, string desc, reaction_t t)
|
|||||||
}}
|
}}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void show() {
|
void show() {
|
||||||
cmode = sm::SIDE | sm::MAYDARK;
|
cmode = sm::SIDE | sm::MAYDARK;
|
||||||
@ -299,6 +301,7 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
|
|||||||
param_b(just_centered, "snow_just_centered");
|
param_b(just_centered, "snow_just_centered");
|
||||||
})
|
})
|
||||||
|
|
||||||
|
#if CAP_RVSLIDES
|
||||||
+ addHook_rvslides(161, [] (string s, vector<tour::slide>& v) {
|
+ addHook_rvslides(161, [] (string s, vector<tour::slide>& v) {
|
||||||
if(s != "noniso") return;
|
if(s != "noniso") return;
|
||||||
v.push_back(tour::slide{
|
v.push_back(tour::slide{
|
||||||
@ -372,7 +375,9 @@ auto hchook = addHook(hooks_drawcell, 100, draw_snow)
|
|||||||
snow_lambda = 3;
|
snow_lambda = 3;
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
});
|
})
|
||||||
|
#endif
|
||||||
|
+ 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -497,6 +497,7 @@ bool draw_ptriangle(cell *c, const shiftmatrix& V) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CAP_RVSLIDES
|
||||||
void slide_itri(tour::presmode mode, int id) {
|
void slide_itri(tour::presmode mode, int id) {
|
||||||
using namespace tour;
|
using namespace tour;
|
||||||
setCanvas(mode, '0');
|
setCanvas(mode, '0');
|
||||||
@ -524,6 +525,7 @@ void slide_itri(tour::presmode mode, int id) {
|
|||||||
}
|
}
|
||||||
rogueviz::pres::non_game_slide_scroll(mode);
|
rogueviz::pres::non_game_slide_scroll(mode);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
string cap = "Impossible architecture in Nil/";
|
string cap = "Impossible architecture in Nil/";
|
||||||
|
|
||||||
@ -546,9 +548,11 @@ auto hchook = addHook(hooks_drawcell, 100, draw_ptriangle)
|
|||||||
}
|
}
|
||||||
else return 1;
|
else return 1;
|
||||||
return 0;
|
return 0;
|
||||||
})
|
});
|
||||||
|
|
||||||
+ addHook_rvslides(166, [] (string s, vector<tour::slide>& v) {
|
#if CAP_RVSLIDES
|
||||||
|
auto hcslides =
|
||||||
|
addHook_rvslides(166, [] (string s, vector<tour::slide>& v) {
|
||||||
using namespace tour;
|
using namespace tour;
|
||||||
if(s != "noniso") return;
|
if(s != "noniso") return;
|
||||||
|
|
||||||
@ -585,6 +589,7 @@ auto hchook = addHook(hooks_drawcell, 100, draw_ptriangle)
|
|||||||
slide_itri(mode, 2);
|
slide_itri(mode, 2);
|
||||||
}});
|
}});
|
||||||
});
|
});
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user