updated the header comments to 2018, also added the missing ones

This commit is contained in:
Zeno Rogue 2018-02-09 00:40:26 +01:00
parent 4966bde3d4
commit 64adb6f0ea
61 changed files with 122 additions and 39 deletions

View File

@ -1,5 +1,5 @@
// Hyperbolic Rogue -- achievements // Hyperbolic Rogue -- achievements
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#define NUMLEADER 78 #define NUMLEADER 78

View File

@ -1,4 +1,6 @@
// Hyperbolic Rogue -- Barriers
// This file implements routines related to barriers (Great Walls and similar). // This file implements routines related to barriers (Great Walls and similar).
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
bool checkBarriersFront(cellwalker bb, int q, bool cross) { bool checkBarriersFront(cellwalker bb, int q, bool cross) {

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- basic graphics
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
unsigned backcolor = 0; unsigned backcolor = 0;
unsigned bordcolor = 0; unsigned bordcolor = 0;
unsigned forecolor = 0xFFFFFF; unsigned forecolor = 0xFFFFFF;

View File

@ -3,6 +3,7 @@
// * routines related to equidistants // * routines related to equidistants
// * 'setland' routines for other geometries // * 'setland' routines for other geometries
// * the buildBigStuff function which calls equidistant/(horo)cycle/barrier generators. // * the buildBigStuff function which calls equidistant/(horo)cycle/barrier generators.
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// horocycles // horocycles

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- special graphical effects, such as the Blizzard
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
double randd() { return (rand() + .5) / (RAND_MAX + 1.); } double randd() { return (rand() + .5) / (RAND_MAX + 1.); }
double cellgfxdist(cell *c, int i) { double cellgfxdist(cell *c, int i) {

View File

@ -1,5 +1,5 @@
// Hyperbolic Rogue -- cells // Hyperbolic Rogue -- cells
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// cells the game is played on // cells the game is played on

View File

@ -1,5 +1,5 @@
// Hyperbolic Rogue -- items, monsters, walls, lands, descriptions, etc. // Hyperbolic Rogue -- items, monsters, walls, lands, descriptions, etc.
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// --- help --- // --- help ---

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- commandline options
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#if CAP_COMMANDLINE #if CAP_COMMANDLINE
const char *scorefile = "hyperrogue.log"; const char *scorefile = "hyperrogue.log";
const char *conffile = "hyperrogue.ini"; const char *conffile = "hyperrogue.ini";

View File

@ -3,7 +3,7 @@
// namespaces for complex features (whirlwind, whirlpool, elec, princess, clearing, // namespaces for complex features (whirlwind, whirlpool, elec, princess, clearing,
// mirror, hive, heat + livecaves, etc.) // mirror, hive, heat + livecaves, etc.)
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#include <map> #include <map>

View File

@ -1,6 +1,6 @@
// Hyperbolic Rogue -- configuration // Hyperbolic Rogue -- configuration
// Copyright (C) 2017- Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2017-2018 Zeno Rogue, see 'hyper.cpp' for details
videopar vid; videopar vid;

View File

@ -1,5 +1,5 @@
// Hyperbolic Rogue -- the conformal/history mode // Hyperbolic Rogue -- the conformal/history mode
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#include <complex> #include <complex>

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- control
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
int frames; int frames;
bool outoffocus = false; bool outoffocus = false;

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- debugging routines
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
int steplimit = 0; int steplimit = 0;
int cstep; int cstep;

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- dialogs
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
/* Missing. /* Missing.
#if ISMOBILE==0 #if ISMOBILE==0

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- fake mobile target
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#define ISFAKEMOBILE 1 #define ISFAKEMOBILE 1
#define MOBPAR_FORMAL int #define MOBPAR_FORMAL int
#define MOBPAR_ACTUAL 0 #define MOBPAR_ACTUAL 0

View File

@ -1,3 +1,5 @@
// Hyperbolic Rogue -- implementation of the quotient geometries based on fields
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
namespace fieldpattern { namespace fieldpattern {

View File

@ -1,7 +1,7 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// implementation of various simple flags for lands, items, monsters, and walls // implementation of various simple flags for lands, items, monsters, and walls
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
bool isIcyLand(eLand l) { bool isIcyLand(eLand l) {
return l == laIce || l == laCocytus || l == laBlizzard; return l == laIce || l == laCocytus || l == laBlizzard;

View File

@ -1,7 +1,7 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// main game routines: movement etc. // main game routines: movement etc.
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
int lastsafety; int lastsafety;
int mutantphase; int mutantphase;

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- the 'experiments with geometry' menu
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// -- geometry menu -- // -- geometry menu --
int eupage = 0; int eupage = 0;

View File

@ -1,7 +1,7 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// geometrical constants // geometrical constants
// Copyright (C) 2011-2012 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
bool debug_geometry = false; bool debug_geometry = false;

View File

@ -1,6 +1,6 @@
// Hyperbolic Rogue -- graphics // Hyperbolic Rogue -- main graphics file
// Copyright (C) 2011-2012 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// basic graphics: // basic graphics:

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- help routines
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
string help; string help;
function<void()> help_delegate; function<void()> help_delegate;

View File

@ -1,5 +1,5 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011-2012 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// heptagon here refers to underlying heptagonal tesselation // heptagon here refers to underlying heptagonal tesselation
// (which you can see by changing the conditions in graph.cpp) // (which you can see by changing the conditions in graph.cpp)

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- heads-up display
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
purehookset hooks_stats; purehookset hooks_stats;
int monsterclass(eMonster m) { int monsterclass(eMonster m) {

View File

@ -1,5 +1,5 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011 Zeno Rogue // Copyright (C) 2011-2018 Zeno Rogue
// This program is free software; you can redistribute it and/or // This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License // modify it under the terms of the GNU General Public License

View File

@ -1,5 +1,6 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011-2012 Zeno Rogue, see 'hyper.cpp' for details // This file contains hyperbolic points and matrices.
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
eGeometry geometry, targetgeometry; eGeometry geometry, targetgeometry;

View File

@ -1,3 +1,7 @@
// Hyperbolic Rogue
// This is the main file when the online version of HyperRogue is compiled with Emscripten.
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#define ISWEB 1 #define ISWEB 1
#define ISMINI 1 #define ISMINI 1
#define CAP_AUDIO 0 #define CAP_AUDIO 0

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- hyperbolic graphics
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
ld ghx, ghy, ghgx, ghgy; ld ghx, ghy, ghgx, ghgy;
hyperpoint ghpm = C0; hyperpoint ghpm = C0;

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- initialization, and stuff related to mobiles
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#ifdef MAC #ifdef MAC
#define ISMAC 1 #define ISMAC 1
#endif #endif

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- Orb Strategy Mode
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
namespace inv { namespace inv {
bool on; bool on;

View File

@ -1,5 +1,5 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011-2017 Zeno and Tehora Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno and Tehora Rogue, see 'hyper.cpp' for details
// Kohonen's self-organizing networks. // Kohonen's self-organizing networks.
// This is a part of RogueViz, not a part of HyperRogue. // This is a part of RogueViz, not a part of HyperRogue.

View File

@ -1,6 +1,6 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// land generation routines // land generation routines

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// land statistics and flags // land statistics and flags
bool nodisplay(eMonster m) { bool nodisplay(eMonster m) {

View File

@ -1,6 +1,6 @@
// Hyperbolic Rogue language file generator // Hyperbolic Rogue language file generator
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#define GEN_M 0 #define GEN_M 0
#define GEN_F 1 #define GEN_F 1

View File

@ -1,5 +1,5 @@
// HyperRogue Czech translation, by Marek Čtrnáct <marek14@seznam.cz> // HyperRogue Czech translation, by Marek Čtrnáct <marek14@seznam.cz>
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// This translation file is encoded with UTF-8 // This translation file is encoded with UTF-8

View File

@ -1,5 +1,5 @@
// HyperRogue Polish translation, by Zeno and Tehora Rogue // HyperRogue Polish translation, by Zeno and Tehora Rogue
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// This translation file is encoded with UTF-8 // This translation file is encoded with UTF-8

View File

@ -1,6 +1,6 @@
// HyperRogue Russian translation, by green orange <khadaev98@gmail.com> // HyperRogue Russian translation, by green orange <khadaev98@gmail.com>
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// This translation file is encoded with UTF-8 // This translation file is encoded with UTF-8

View File

@ -1,5 +1,5 @@
// Hyperbolic Rogue language support // Hyperbolic Rogue language support
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// #define CHECKTRANS // #define CHECKTRANS

View File

@ -1,5 +1,5 @@
// HyperRogue map editor // HyperRogue map editor
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#include <map> #include <map>
#include <stdint.h> #include <stdint.h>

View File

@ -1,5 +1,5 @@
// HyperRogue menus // HyperRogue menus
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#include "dialogs.cpp" #include "dialogs.cpp"

View File

@ -1,6 +1,6 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011-2017 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// Routines concentrating on monster generation. // Routines concentrating on monster generation.

View File

@ -1,5 +1,5 @@
// HyperRogue paper model generator // HyperRogue paper model generator
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#if CAP_MODEL #if CAP_MODEL
namespace netgen { namespace netgen {

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- built-in font
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#if CAP_TABFONT #if CAP_TABFONT
// compile with -DCAP_CREATEFONT to generate this table // compile with -DCAP_CREATEFONT to generate this table
// this variant has been created for non-translated HyperRogue // this variant has been created for non-translated HyperRogue

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- orb generation routines
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#define ORBLINES 70 #define ORBLINES 70
// orbgen flags // orbgen flags

View File

@ -1,6 +1,6 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// Orb-related routines // Orb-related routines

View File

@ -1,6 +1,6 @@
// HyperRogue patterns: compute codes for actual cells // HyperRogue patterns: compute codes for actual cells
// Copyright (C) 2011-2017 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
int eupattern(cell *c) { int eupattern(cell *c) {
int v = cell_to_vec(c); int v = cell_to_vec(c);

View File

@ -1,6 +1,6 @@
// Hyperbolic Rogue pattern generator // Hyperbolic Rogue pattern generator
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
void spill50(cell *c, eWall w, int r) { void spill50(cell *c, eWall w, int r) {
c->wall = w; c->wall = w;

View File

@ -1,6 +1,6 @@
// HyperRogue patterns: tables to give codes to heptagons // HyperRogue patterns: tables to give codes to heptagons
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// === EMERALD PATTERN === // === EMERALD PATTERN ===

View File

@ -1,6 +1,8 @@
// HyperRogue, shapes used for the vector graphics // HyperRogue, shapes used for the vector graphics
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // also the implementation of the rendering queue and svg renderer
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// draw the lines // draw the lines
static const int POLY_DRAWLINES = 1; static const int POLY_DRAWLINES = 1;

View File

@ -1,4 +1,5 @@
// -- mission screen -- // Hyperbolic Rogue -- the mission screen
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
bool quitsaves() { return (items[itOrbSafety] && havesave); } bool quitsaves() { return (items[itOrbSafety] && havesave); }

View File

@ -1,3 +1,10 @@
// Hyperbolic Rogue
// This file implements the 'renderbuffer', which is an object
// that can be used to draw a HyperRogue screen into,
// and then either used as a OpenGL texture, or saved.
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#if CAP_GL #if CAP_GL
#if !CAP_GLEW #if !CAP_GLEW
#if ISLINUX #if ISLINUX

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- smart memory cleaner
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
bool memory_saving_mode = true; bool memory_saving_mode = true;
#define LIM 150 #define LIM 150

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- local score system
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#if CAP_SAVE #if CAP_SAVE
namespace scores { namespace scores {

View File

@ -1,5 +1,8 @@
// gl matrices // Hyperbolic Rogue -- basic GL transformations
//------------- // If CAP_SHADER is 0, OpenGL 1.0 is used.
// If CAP_SHADER is 1, GLSL is used.
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// #undef CAP_SHADER // #undef CAP_SHADER
// #define CAP_SHADER 0 // #define CAP_SHADER 0

View File

@ -1,6 +1,6 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// implementation of the shoot'em up mode // implementation of the shoot'em up mode

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- routines related to sounds
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
bool audio; bool audio;
string musiclicense; string musiclicense;
string musfname[landtypes]; string musfname[landtypes];

View File

@ -1,6 +1,6 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// routines for: initializing/closing, loading/saving, and cheating // routines for: initializing/closing, loading/saving, and cheating

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- texture mode
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
#if CAP_SDL_IMG #if CAP_SDL_IMG
#include <SDL/SDL_image.h> #include <SDL/SDL_image.h>
#elif CAP_PNG #elif CAP_PNG

View File

@ -1,5 +1,5 @@
// Hyperbolic Rogue -- the Tutorial/presentation // Hyperbolic Rogue -- the Tutorial/presentation
// Copyright (C) 2011-2017 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
namespace tour { namespace tour {

View File

@ -1,5 +1,5 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// basic utility functions // basic utility functions

View File

@ -1,9 +1,9 @@
// Hyperbolic Rogue // Hyperbolic Rogue
// Copyright (C) 2011-2016 Zeno Rogue, see 'hyper.cpp' for details // Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// Yendor Quest, together with the Yendor Challenge // Yendor Quest, together with the Yendor Challenge
// also, the Pure Tactics Mode // also, the Pure Tactics Mode and the Peace Mode
namespace peace { extern bool on; } namespace peace { extern bool on; }