mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-27 11:57:40 +00:00
moved all the HyperRogue stuff except RogueViz to namespace 'hr' -- useful when using hr as a library
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user