From 9647cbd47eeb96710e4d6bd690efa3e54a415564 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 5 Sep 2019 09:15:40 +0200 Subject: [PATCH] added #include hyper.h to all cpp files --- 3d-models.cpp | 1 + achievement.cpp | 1 + archimedean.cpp | 1 + barriers.cpp | 1 + basegraph.cpp | 1 + bigstuff.cpp | 5 +++-- binary-tiling.cpp | 1 + blizzard.cpp | 1 + cell.cpp | 1 + classes.cpp | 1 + commandline.cpp | 1 + complex.cpp | 1 + complex2.cpp | 1 + config.cpp | 1 + content.cpp | 1 - control.cpp | 1 + crystal.cpp | 1 + debug.cpp | 1 + dialogs.cpp | 1 + drawing.cpp | 1 + euclid.cpp | 1 + expansion.cpp | 1 + fieldpattern.cpp | 1 + flags.cpp | 1 + floorshapes.cpp | 1 + game.cpp | 1 + geom-exp.cpp | 1 + geometry.cpp | 1 + geometry2.cpp | 1 + goldberg.cpp | 1 + graph.cpp | 1 + help.cpp | 1 + heptagon.cpp | 1 + history.cpp | 1 + hprint.cpp | 1 + hud.cpp | 1 + hyper-main.cpp | 1 + hyperpoint.cpp | 1 + hypgraph.cpp | 1 + inventory.cpp | 1 + irregular.cpp | 1 + landgen.cpp | 1 + landlock.cpp | 1 + language.cpp | 5 +++-- legacy.cpp | 1 + locations.cpp | 1 + mapeditor.cpp | 1 + menus.cpp | 1 + mobile.cpp | 1 + models.cpp | 1 + monstergen.cpp | 1 + multi.cpp | 1 + multigame.cpp | 1 + netgen.cpp | 1 + nofont.cpp | 1 + nonisotropic.cpp | 1 + orbgen.cpp | 1 + orbs.cpp | 1 + pattern2.cpp | 1 + patterns.cpp | 1 + penrose.cpp | 1 + polygons.cpp | 1 + quit.cpp | 1 + quotient.cpp | 1 + racing.cpp | 1 + reg3.cpp | 1 + renderbuffer.cpp | 1 + rug.cpp | 1 + savemem.cpp | 2 +- scores.cpp | 1 + screenshot.cpp | 1 + shaders.cpp | 1 + shmup.cpp | 1 + sound.cpp | 1 + sphere.cpp | 1 + surface.cpp | 1 + system.cpp | 1 + textures.cpp | 1 + tour.cpp | 1 + usershapes.cpp | 1 + util.cpp | 1 + yendor.cpp | 1 + 82 files changed, 85 insertions(+), 6 deletions(-) diff --git a/3d-models.cpp b/3d-models.cpp index 5aeab82e..c8a4589e 100644 --- a/3d-models.cpp +++ b/3d-models.cpp @@ -5,6 +5,7 @@ * \brief This file contains the routines to convert HyperRogue's old vector graphics into 3D models */ +#include "hyper.h" #include "earcut.hpp" namespace hr { diff --git a/achievement.cpp b/achievement.cpp index 377e2beb..5d27049f 100644 --- a/achievement.cpp +++ b/achievement.cpp @@ -7,6 +7,7 @@ * This routines are general, i.e., not necessarily Steam-specific. */ +#include "hyper.h" namespace hr { #define NUMLEADER 82 diff --git a/archimedean.cpp b/archimedean.cpp index 8bdfe6e7..a9b0bd38 100644 --- a/archimedean.cpp +++ b/archimedean.cpp @@ -7,6 +7,7 @@ * These are tilings available in the 'Archimedean' option in Geometry Experiments; simpler Archimedean tilings are defined in other files. */ +#include "hyper.h" namespace hr { EX namespace arcm { diff --git a/barriers.cpp b/barriers.cpp index d7dd5707..515c02c2 100644 --- a/barriers.cpp +++ b/barriers.cpp @@ -5,6 +5,7 @@ * \brief This file implements routines related to barriers (Great Walls and similar). */ +#include "hyper.h" namespace hr { EX bool checkBarriersFront(cellwalker bb, int q IS(5), bool cross IS(false)) { diff --git a/basegraph.cpp b/basegraph.cpp index 2199e21d..c99aecf4 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -5,6 +5,7 @@ * \brief This file implements the basic graphical routines */ +#include "hyper.h" namespace hr { EX int fontscale = 100; diff --git a/bigstuff.cpp b/bigstuff.cpp index 289c802b..f7e7454a 100644 --- a/bigstuff.cpp +++ b/bigstuff.cpp @@ -12,10 +12,11 @@ * This routines are general, i.e., not necessarily Steam-specific. */ -// horocycles - +#include "hyper.h" namespace hr { +// horocycles + EX int newRoundTableRadius() { return 28 + 2 * items[itHolyGrail]; } diff --git a/binary-tiling.cpp b/binary-tiling.cpp index b79a321e..b2673464 100644 --- a/binary-tiling.cpp +++ b/binary-tiling.cpp @@ -5,6 +5,7 @@ * \brief Binary tilings in 2D and 3D */ +#include "hyper.h" namespace hr { EX namespace binary { diff --git a/blizzard.cpp b/blizzard.cpp index d4af0a46..0dd156b0 100644 --- a/blizzard.cpp +++ b/blizzard.cpp @@ -5,6 +5,7 @@ * \brief special graphical effects, such as the Blizzard and arrow traps */ +#include "hyper.h" namespace hr { struct snowball { diff --git a/cell.cpp b/cell.cpp index edfcc96f..1c823b01 100644 --- a/cell.cpp +++ b/cell.cpp @@ -7,6 +7,7 @@ * Start with locations.cpp */ +#include "hyper.h" namespace hr { #if HDR diff --git a/classes.cpp b/classes.cpp index 7e144d13..4a4a86bd 100644 --- a/classes.cpp +++ b/classes.cpp @@ -7,6 +7,7 @@ * See content.cpp for actual items, monsters, walls and lands. */ +#include "hyper.h" namespace hr { // --- help --- diff --git a/commandline.cpp b/commandline.cpp index 4f2cd0f2..afb1631c 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -5,6 +5,7 @@ * \brief Commandline options support */ +#include "hyper.h" namespace hr { #if CAP_COMMANDLINE diff --git a/complex.cpp b/complex.cpp index 2928df5b..8176a5fb 100644 --- a/complex.cpp +++ b/complex.cpp @@ -7,6 +7,7 @@ * Includes: whirlwind, whirlpool, elec, princess, clearing, mirror, hive, heat + livecaves, etc. */ +#include "hyper.h" namespace hr { EX namespace whirlwind { diff --git a/complex2.cpp b/complex2.cpp index 129c029c..9054de3f 100644 --- a/complex2.cpp +++ b/complex2.cpp @@ -7,6 +7,7 @@ * Includes: Brownian, Irradiated, Free Fall */ +#include "hyper.h" #ifdef CAP_COMPLEX2 namespace hr { diff --git a/config.cpp b/config.cpp index 99d7b4b4..dd229a7a 100644 --- a/config.cpp +++ b/config.cpp @@ -5,6 +5,7 @@ * \brief Configuration -- initial settings, saving/loading ini files, menus, etc. */ +#include "hyper.h" namespace hr { #if HDR diff --git a/content.cpp b/content.cpp index ffcfdb2e..0335a27f 100644 --- a/content.cpp +++ b/content.cpp @@ -8,7 +8,6 @@ * Old things are sorted according to type, but this is not necessary for new content. */ - #ifndef MONSTER #define MONSTER(a,b,c,d,e,f,g,h) #endif diff --git a/control.cpp b/control.cpp index a5404d83..957df18f 100644 --- a/control.cpp +++ b/control.cpp @@ -5,6 +5,7 @@ * \brief Routines related to controlling the game */ +#include "hyper.h" namespace hr { int frames; diff --git a/crystal.cpp b/crystal.cpp index 224d8fac..8ca33c9d 100644 --- a/crystal.cpp +++ b/crystal.cpp @@ -5,6 +5,7 @@ * \brief Multi-dimensional (aka crystal) geometries. */ +#include "hyper.h" namespace hr { EX namespace crystal { diff --git a/debug.cpp b/debug.cpp index 0709d474..1abd966a 100644 --- a/debug.cpp +++ b/debug.cpp @@ -5,6 +5,7 @@ * \brief Debugging and cheating */ +#include "hyper.h" namespace hr { EX int steplimit = 0; diff --git a/dialogs.cpp b/dialogs.cpp index 0a68a4cd..aad34025 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -5,6 +5,7 @@ * \brief Implementation of various generic dialogs and elements of dialog windows */ +#include "hyper.h" namespace hr { EX const char* COLORBAR = "###"; diff --git a/drawing.cpp b/drawing.cpp index c0540ea6..dcfaf823 100644 --- a/drawing.cpp +++ b/drawing.cpp @@ -5,6 +5,7 @@ * \brief Rendering shapes (dqi_draw), queue of shapes to render (ptds), etc. */ +#include "hyper.h" namespace hr { #if HDR diff --git a/euclid.cpp b/euclid.cpp index de939d2e..a9b3b2f6 100644 --- a/euclid.cpp +++ b/euclid.cpp @@ -5,6 +5,7 @@ * \brief Euclidean geometry, including 2D, 3D, and quotient spaces */ +#include "hyper.h" namespace hr { // 2D Euclidean space diff --git a/expansion.cpp b/expansion.cpp index b3a624f5..c899ebca 100644 --- a/expansion.cpp +++ b/expansion.cpp @@ -8,6 +8,7 @@ * Screens which display this exponential growth (e.g. 'size of the world' in geometry experiments) are also implemented here. */ +#include "hyper.h" namespace hr { int subtype(cell *c) { diff --git a/fieldpattern.cpp b/fieldpattern.cpp index 30d7ccc1..5863a9f0 100644 --- a/fieldpattern.cpp +++ b/fieldpattern.cpp @@ -5,6 +5,7 @@ * \brief Field Quotient geometry */ +#include "hyper.h" #if CAP_FIELD namespace hr { diff --git a/flags.cpp b/flags.cpp index bd9495d7..2dbf783e 100644 --- a/flags.cpp +++ b/flags.cpp @@ -6,6 +6,7 @@ * \brief Implementation of various simple flags for lands, items, monsters, and walls. */ +#include "hyper.h" namespace hr { const flagtype& classflag(eItem it) { return iinf[it].flags; } diff --git a/floorshapes.cpp b/floorshapes.cpp index a30b08a4..ff5a7262 100644 --- a/floorshapes.cpp +++ b/floorshapes.cpp @@ -6,6 +6,7 @@ * \brief Adjusting the floor shapes to various geometries. */ +#include "hyper.h" namespace hr { #if CAP_SHAPES diff --git a/game.cpp b/game.cpp index f0bd93e3..55f3dd18 100644 --- a/game.cpp +++ b/game.cpp @@ -5,6 +5,7 @@ * \brief Routines for game itself: movement of PC and monsters, basic mechanics, etc. */ +#include "hyper.h" namespace hr { #if HDR diff --git a/geom-exp.cpp b/geom-exp.cpp index 3fecafc5..3e41d74c 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -7,6 +7,7 @@ * Implementation of this menu, and computation of the statistics shown there */ +#include "hyper.h" namespace hr { int eupage = 0; diff --git a/geometry.cpp b/geometry.cpp index 5b5dafdf..bb6c9af6 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -5,6 +5,7 @@ * \brief Calculation of basic, and less basic, constants in each geometry */ +#include "hyper.h" namespace hr { #if HDR diff --git a/geometry2.cpp b/geometry2.cpp index 25316583..85f95034 100644 --- a/geometry2.cpp +++ b/geometry2.cpp @@ -5,6 +5,7 @@ * \brief Matrices to transform between coordinates of various cells, coordinates of cell corners, etc. */ +#include "hyper.h" namespace hr { transmatrix &ggmatrix(cell *c); diff --git a/goldberg.cpp b/goldberg.cpp index 01b44e3d..bac01f6f 100644 --- a/goldberg.cpp +++ b/goldberg.cpp @@ -7,6 +7,7 @@ * This is generally not used for standard pure and bitruncated tilings, even though they are technically Goldberg too. */ +#include "hyper.h" namespace hr { EX namespace gp { diff --git a/graph.cpp b/graph.cpp index d9fb04e7..ac96a8e9 100644 --- a/graph.cpp +++ b/graph.cpp @@ -5,6 +5,7 @@ * \brief Drawing cells, monsters, items, etc. */ +#include "hyper.h" namespace hr { int last_firelimit, firelimit; diff --git a/help.cpp b/help.cpp index 53635188..c56d84e5 100644 --- a/help.cpp +++ b/help.cpp @@ -5,6 +5,7 @@ * \brief Building and displaying help text */ +#include "hyper.h" namespace hr { EX string help; diff --git a/heptagon.cpp b/heptagon.cpp index c174cedf..6f807a75 100644 --- a/heptagon.cpp +++ b/heptagon.cpp @@ -7,6 +7,7 @@ * Start with locations.cpp */ +#include "hyper.h" namespace hr { #define MIRR(x) x.mirrored diff --git a/history.cpp b/history.cpp index ae360674..db293027 100644 --- a/history.cpp +++ b/history.cpp @@ -5,6 +5,7 @@ * \brief Implementation of the history mode, including the long band and long spiral. */ +#include "hyper.h" namespace hr { #if CAP_SDL diff --git a/hprint.cpp b/hprint.cpp index c9293e68..87b143ca 100644 --- a/hprint.cpp +++ b/hprint.cpp @@ -5,6 +5,7 @@ * \brief Routines related to displaying various things, and writing them to console and files. Nicer than the standard C++ streams. */ +#include "hyper.h" namespace hr { EX FILE *debugfile; diff --git a/hud.cpp b/hud.cpp index fa0aea62..181a85c4 100644 --- a/hud.cpp +++ b/hud.cpp @@ -5,6 +5,7 @@ * \brief Heads-Up display: items collected, monsters killed, radar, etc. */ +#include "hyper.h" namespace hr { #if HDR diff --git a/hyper-main.cpp b/hyper-main.cpp index 84d98024..1df1d85d 100644 --- a/hyper-main.cpp +++ b/hyper-main.cpp @@ -19,6 +19,7 @@ * \brief the hyper_main function */ +#include "hyper.h" #if CU_HYPER #if ISLINUX diff --git a/hyperpoint.cpp b/hyperpoint.cpp index 90369ef8..07db52cf 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -9,6 +9,7 @@ * For nonisotropic geometries, it rather refers to nonisotropic.cpp. */ +#include "hyper.h" namespace hr { #if HDR diff --git a/hypgraph.cpp b/hypgraph.cpp index 445bf41f..5120cb35 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -5,6 +5,7 @@ * \brief mapping hyperpoints to the screen, and related functions */ +#include "hyper.h" namespace hr { ld ghx, ghy, ghgx, ghgy; diff --git a/inventory.cpp b/inventory.cpp index 0d8293ce..9a922d16 100644 --- a/inventory.cpp +++ b/inventory.cpp @@ -5,6 +5,7 @@ * \brief Orb Strategy Mode */ +#include "hyper.h" namespace hr { EX namespace inv { diff --git a/irregular.cpp b/irregular.cpp index e109273c..8e7980c3 100644 --- a/irregular.cpp +++ b/irregular.cpp @@ -5,6 +5,7 @@ * \brief Irregular (Voronoi) tilings */ +#include "hyper.h" namespace hr { EX namespace irr { diff --git a/landgen.cpp b/landgen.cpp index 92d07cb2..08d91fa9 100644 --- a/landgen.cpp +++ b/landgen.cpp @@ -7,6 +7,7 @@ * See also bigstuff.cpp (for larger structures) and complex.cpp (for more complex land generation) */ +#include "hyper.h" namespace hr { // land generation routines diff --git a/landlock.cpp b/landlock.cpp index 791f61b5..8b477e68 100644 --- a/landlock.cpp +++ b/landlock.cpp @@ -5,6 +5,7 @@ * \brief unlocking lands, which lands could be found beyond the wall, validity of various lands depending on the settings */ +#include "hyper.h" namespace hr { EX bool nodisplay(eMonster m) { diff --git a/language.cpp b/language.cpp index 151300e4..6289211c 100644 --- a/language.cpp +++ b/language.cpp @@ -7,8 +7,7 @@ // #define CHECKTRANS -#define NUMLAN 7 - +#include "hyper.h" namespace hr { EX const char *dnameof(eMonster m) { return minf[m].name; } @@ -17,6 +16,8 @@ EX const char *dnameof(eWall w) { return winf[w].name; } EX const char *dnameof(eItem i) { return iinf[i].name; } #if HDR +#define NUMLAN 7 + struct stringpar { string v; stringpar(string s) : v(s) { } diff --git a/legacy.cpp b/legacy.cpp index 4b8c29fb..cc82a6e6 100644 --- a/legacy.cpp +++ b/legacy.cpp @@ -1,6 +1,7 @@ // Hyperbolic Rogue -- old config file format (disabled by default) // Copyright (C) 2011-2019 Zeno Rogue, see 'hyper.cpp' for details +#include "hyper.h" #if CAP_LEGACY namespace hr { diff --git a/locations.cpp b/locations.cpp index 4e8c694d..b54c07ca 100644 --- a/locations.cpp +++ b/locations.cpp @@ -11,6 +11,7 @@ * geometries, though. This file implements the basic types and functions for navigating both graphs. */ +#include "hyper.h" namespace hr { #if HDR diff --git a/mapeditor.cpp b/mapeditor.cpp index ec7133db..bd32492f 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -5,6 +5,7 @@ * \brief HyperRogue editors (map and vector graphics) */ +#include "hyper.h" namespace hr { EX namespace mapeditor { diff --git a/menus.cpp b/menus.cpp index 268503f0..a7ac5e96 100644 --- a/menus.cpp +++ b/menus.cpp @@ -7,6 +7,7 @@ // -- overview -- +#include "hyper.h" #define BLACKISH 0x404040 #define REDDISH 0x400000 diff --git a/mobile.cpp b/mobile.cpp index d627ce7f..0c92ea35 100644 --- a/mobile.cpp +++ b/mobile.cpp @@ -5,6 +5,7 @@ * \brief initialization, and stuff related to mobiles */ +#include "hyper.h" namespace hr { #if CU_INIT diff --git a/models.cpp b/models.cpp index 728da62b..7e8eee17 100644 --- a/models.cpp +++ b/models.cpp @@ -8,6 +8,7 @@ * drawing.cpp, and basegraph.cpp are important. */ +#include "hyper.h" namespace hr { EX namespace polygonal { diff --git a/monstergen.cpp b/monstergen.cpp index 13e3ac20..cf675463 100644 --- a/monstergen.cpp +++ b/monstergen.cpp @@ -5,6 +5,7 @@ * \brief monster generation */ +#include "hyper.h" namespace hr { EX bool timerghost = true; diff --git a/multi.cpp b/multi.cpp index c1b5443f..7c1830ac 100644 --- a/multi.cpp +++ b/multi.cpp @@ -5,6 +5,7 @@ * \brief multiplayer features, also input configuration */ +#include "hyper.h" namespace hr { EX namespace multi { diff --git a/multigame.cpp b/multigame.cpp index 063f3727..dfe728fc 100644 --- a/multigame.cpp +++ b/multigame.cpp @@ -5,6 +5,7 @@ * \brief running several games at once -- used in the Tutorial and Dual Geometry mode */ +#include "hyper.h" namespace hr { #if HDR diff --git a/netgen.cpp b/netgen.cpp index bd299560..3b385fd7 100644 --- a/netgen.cpp +++ b/netgen.cpp @@ -5,6 +5,7 @@ * \brief paper model generator */ +#include "hyper.h" #if CAP_MODEL namespace hr { namespace netgen { diff --git a/nofont.cpp b/nofont.cpp index 965e4b8f..90ebeb78 100644 --- a/nofont.cpp +++ b/nofont.cpp @@ -5,6 +5,7 @@ * \brief built-in font (used e.g. in the web version) */ +#include "hyper.h" namespace hr { #if CAP_TABFONT diff --git a/nonisotropic.cpp b/nonisotropic.cpp index 9ecc4b58..52f919f7 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -5,6 +5,7 @@ * \brief nonisotropic spaces (Solv and Nil) */ +#include "hyper.h" namespace hr { EX namespace nisot { diff --git a/orbgen.cpp b/orbgen.cpp index 83fcdf8d..bfa1534c 100644 --- a/orbgen.cpp +++ b/orbgen.cpp @@ -5,6 +5,7 @@ * \brief Orb generation: which orbs in which lands, functions generating prize/local orbs, etc. */ +#include "hyper.h" namespace hr { // orbgen flags diff --git a/orbs.cpp b/orbs.cpp index 44e06448..9310271a 100644 --- a/orbs.cpp +++ b/orbs.cpp @@ -5,6 +5,7 @@ * \brief Implementation of various Orb effects, and their properties such as default and maximum charges */ +#include "hyper.h" namespace hr { EX bool markOrb(eItem it) { diff --git a/pattern2.cpp b/pattern2.cpp index f6e20394..fc5f9ecd 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -8,6 +8,7 @@ * as well as more complex ones (Emerald, Palace, Field Pattern) */ +#include "hyper.h" namespace hr { EX int ctof(cell *c) { diff --git a/patterns.cpp b/patterns.cpp index 2207ea83..33feca59 100644 --- a/patterns.cpp +++ b/patterns.cpp @@ -5,6 +5,7 @@ * \brief tables that the complex patterns (Emerald, Palace, Field Pattern) are based on */ +#include "hyper.h" namespace hr { // === EMERALD PATTERN === diff --git a/penrose.cpp b/penrose.cpp index 25e5303e..0f2291ec 100644 --- a/penrose.cpp +++ b/penrose.cpp @@ -5,6 +5,7 @@ * \brief Kite-and-dart tiling, both in R^2 and H^3 */ +#include "hyper.h" namespace hr { EX namespace kite { diff --git a/polygons.cpp b/polygons.cpp index b6ff6523..cbc3cd59 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -5,6 +5,7 @@ * \brief shapes used for the vector graphics, mostly hand-drawn (the vector data is here), some procedurally generated */ +#include "hyper.h" #if CAP_SHAPES namespace hr { diff --git a/quit.cpp b/quit.cpp index b5b61c46..3767e16e 100644 --- a/quit.cpp +++ b/quit.cpp @@ -5,6 +5,7 @@ * \brief the mission screen, and routines related to it */ +#include "hyper.h" namespace hr { EX bool quitsaves() { return (items[itOrbSafety] && CAP_SAVE && !archimedean); } diff --git a/quotient.cpp b/quotient.cpp index b4f83324..7a07beec 100644 --- a/quotient.cpp +++ b/quotient.cpp @@ -5,6 +5,7 @@ * \brief quotient spaces */ +#include "hyper.h" namespace hr { // --- quotient geometry --- diff --git a/racing.cpp b/racing.cpp index 83d7371c..32993b0a 100644 --- a/racing.cpp +++ b/racing.cpp @@ -5,6 +5,7 @@ * \brief racing mode */ +#include "hyper.h" namespace hr { EX namespace racing { diff --git a/reg3.cpp b/reg3.cpp index d1f5316f..56979699 100644 --- a/reg3.cpp +++ b/reg3.cpp @@ -9,6 +9,7 @@ * hyperbolic honeycombs rely on binary:: to deal with floating point errors (just like archimedean) */ +#include "hyper.h" namespace hr { #if MAXMDIM >= 4 diff --git a/renderbuffer.cpp b/renderbuffer.cpp index a8c36a4b..51442fe0 100644 --- a/renderbuffer.cpp +++ b/renderbuffer.cpp @@ -9,6 +9,7 @@ * and then either used as a OpenGL texture (e.g. in the Hypersian Rug mode), or saved. */ +#include "hyper.h" namespace hr { #if CAP_GL diff --git a/rug.cpp b/rug.cpp index 71e6a4bd..2e9e79e0 100644 --- a/rug.cpp +++ b/rug.cpp @@ -7,6 +7,7 @@ * See also surface.cpp for constant curvature surfaces. */ +#include "hyper.h" namespace hr { #if CAP_RUG diff --git a/savemem.cpp b/savemem.cpp index 1111c547..7ed87253 100644 --- a/savemem.cpp +++ b/savemem.cpp @@ -5,7 +5,7 @@ * \brief memory saving: memory saving mode, memory warnings, etc. */ - +#include "hyper.h" namespace hr { #if HDR diff --git a/scores.cpp b/scores.cpp index 1b11ead2..7af61506 100644 --- a/scores.cpp +++ b/scores.cpp @@ -5,6 +5,7 @@ * \brief local highscore lists */ +#include "hyper.h" #if CAP_SAVE namespace hr { namespace scores { diff --git a/screenshot.cpp b/screenshot.cpp index 490d8b85..72741a8a 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -5,6 +5,7 @@ * \brief screenshots, SVG format, animations, start animations */ +#include "hyper.h" namespace hr { bool hide_hud = true; diff --git a/shaders.cpp b/shaders.cpp index ce1858fa..9fddda03 100644 --- a/shaders.cpp +++ b/shaders.cpp @@ -8,6 +8,7 @@ * If CAP_SHADER is 1, we are using GLSL shaders. */ +#include "hyper.h" namespace hr { #ifndef DEBUG_GL diff --git a/shmup.cpp b/shmup.cpp index f4b0a648..06bea663 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -5,6 +5,7 @@ * \brief shoot'em up mode */ +#include "hyper.h" namespace hr { // joysticks for controlling the mobile shmup mode diff --git a/sound.cpp b/sound.cpp index 3858fcee..6379c0a1 100644 --- a/sound.cpp +++ b/sound.cpp @@ -5,6 +5,7 @@ * \brief sound effects and music */ +#include "hyper.h" namespace hr { EX const char *musicfile = ""; diff --git a/sphere.cpp b/sphere.cpp index 40d0794e..9467de1e 100644 --- a/sphere.cpp +++ b/sphere.cpp @@ -5,6 +5,7 @@ * \brief spherical spaces */ +#include "hyper.h" namespace hr { // --- spherical geometry --- diff --git a/surface.cpp b/surface.cpp index f10685e4..f1c6a64b 100644 --- a/surface.cpp +++ b/surface.cpp @@ -7,6 +7,7 @@ * See http://webmath2.unito.it/paginepersonali/sergio.console/CurveSuperfici/AG15.pdf for a nice reference */ +#include "hyper.h" #if CAP_SURFACE namespace hr { diff --git a/system.cpp b/system.cpp index b6836fe6..9f35ba6e 100644 --- a/system.cpp +++ b/system.cpp @@ -5,6 +5,7 @@ * \brief changing game modes, starting, closing, loading and saving games */ +#include "hyper.h" namespace hr { #if HDR diff --git a/textures.cpp b/textures.cpp index 771f660d..68f2c9a9 100644 --- a/textures.cpp +++ b/textures.cpp @@ -5,6 +5,7 @@ * \brief texture mode, also the basic definitions of textures, used in 3D mode */ +#include "hyper.h" #if CAP_TEXTURE namespace hr { diff --git a/tour.cpp b/tour.cpp index 3c6b8bb3..5e81cb6e 100644 --- a/tour.cpp +++ b/tour.cpp @@ -5,6 +5,7 @@ * \brief the Tutorial and presentation system */ +#include "hyper.h" namespace hr { EX namespace tour { diff --git a/usershapes.cpp b/usershapes.cpp index e4cf360b..dd0c0dd0 100644 --- a/usershapes.cpp +++ b/usershapes.cpp @@ -5,6 +5,7 @@ * \brief user-defined shapes */ +#include "hyper.h" #if CAP_SHAPES namespace hr { diff --git a/util.cpp b/util.cpp index c304e563..2cfb35b3 100644 --- a/util.cpp +++ b/util.cpp @@ -5,6 +5,7 @@ * \brief basic utility functions: maths, parsing expressions */ +#include "hyper.h" namespace hr { #if CAP_TIMEOFDAY diff --git a/yendor.cpp b/yendor.cpp index 07776a1f..0e9ba6f8 100644 --- a/yendor.cpp +++ b/yendor.cpp @@ -5,6 +5,7 @@ * \brief Yendor Quest/Challenge, Pure Tactics Mode, Peace Mode */ +#include "hyper.h" namespace hr { namespace peace { extern bool on; }