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
// 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

View File

@ -1,4 +1,6 @@
// Hyperbolic Rogue -- Barriers
// 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) {

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 bordcolor = 0;
unsigned forecolor = 0xFFFFFF;

View File

@ -3,6 +3,7 @@
// * routines related to equidistants
// * 'setland' routines for other geometries
// * the buildBigStuff function which calls equidistant/(horo)cycle/barrier generators.
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
// 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 cellgfxdist(cell *c, int i) {

View File

@ -1,5 +1,5 @@
// 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

View File

@ -1,5 +1,5 @@
// 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 ---

View File

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

View File

@ -3,7 +3,7 @@
// namespaces for complex features (whirlwind, whirlpool, elec, princess, clearing,
// 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>

View File

@ -1,6 +1,6 @@
// 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;

View File

@ -1,5 +1,5 @@
// 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>

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- control
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
int frames;
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 cstep;

View File

@ -1,3 +1,6 @@
// Hyperbolic Rogue -- dialogs
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
/* Missing.
#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 MOBPAR_FORMAL int
#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 {

View File

@ -1,7 +1,7 @@
// Hyperbolic Rogue
// 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) {
return l == laIce || l == laCocytus || l == laBlizzard;

View File

@ -1,7 +1,7 @@
// Hyperbolic Rogue
// 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 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 --
int eupage = 0;

View File

@ -1,7 +1,7 @@
// Hyperbolic Rogue
// 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;

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:

View File

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

View File

@ -1,5 +1,5 @@
// 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
// (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;
int monsterclass(eMonster m) {

View File

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

View File

@ -1,5 +1,6 @@
// 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;

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 ISMINI 1
#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;
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
#define ISMAC 1
#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 {
bool on;

View File

@ -1,5 +1,5 @@
// 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.
// This is a part of RogueViz, not a part of HyperRogue.

View File

@ -1,6 +1,6 @@
// 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

View File

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

View File

@ -1,6 +1,6 @@
// 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_F 1

View File

@ -1,5 +1,5 @@
// 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

View File

@ -1,5 +1,5 @@
// 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

View File

@ -1,6 +1,6 @@
// 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

View File

@ -1,5 +1,5 @@
// 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

View File

@ -1,5 +1,5 @@
// 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 <stdint.h>

View File

@ -1,5 +1,5 @@
// 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"

View File

@ -1,6 +1,6 @@
// 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.

View File

@ -1,5 +1,5 @@
// 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
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
// compile with -DCAP_CREATEFONT to generate this table
// 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
// orbgen flags

View File

@ -1,6 +1,6 @@
// 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

View File

@ -1,6 +1,6 @@
// 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 v = cell_to_vec(c);

View File

@ -1,6 +1,6 @@
// 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) {
c->wall = w;

View File

@ -1,6 +1,6 @@
// 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 ===

View File

@ -1,6 +1,8 @@
// 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
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); }

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_GLEW
#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;
#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
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
// #define CAP_SHADER 0

View File

@ -1,6 +1,6 @@
// 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

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;
string musiclicense;
string musfname[landtypes];

View File

@ -1,6 +1,6 @@
// 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

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
#include <SDL/SDL_image.h>
#elif CAP_PNG

View File

@ -1,5 +1,5 @@
// 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 {

View File

@ -1,5 +1,5 @@
// 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

View File

@ -1,9 +1,9 @@
// 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
// also, the Pure Tactics Mode
// also, the Pure Tactics Mode and the Peace Mode
namespace peace { extern bool on; }