moved all the HyperRogue stuff except RogueViz to namespace 'hr' -- useful when using hr as a library

This commit is contained in:
Zeno Rogue committed 2018-06-11 01:58:31 +02:00
1 parent c2e3ed54f0
commit 4c619e60dd
68 files changed
+735 -539

No files matched your search

+4
View File
@@ -1,6 +1,8 @@
// Hyperbolic Rogue -- special graphical effects, such as the Blizzard
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
namespace hr {
double randd() { return (rand() + .5) / (RAND_MAX + 1.); }
double cellgfxdist(cell *c, int i) {
@@ -261,3 +263,5 @@ auto ccm_blizzard = addHook(clearmemory, 0, [] () {
addHook(hooks_removecells, 0, [] () {
eliminate_if(arrowtraps, is_cell_removed);
});
}