mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-02 20:29:17 +00:00
updated the header comments to 2018, also added the missing ones
This commit is contained in:
parent
4966bde3d4
commit
64adb6f0ea
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
2
cell.cpp
2
cell.cpp
@ -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
|
||||
|
||||
|
@ -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 ---
|
||||
|
||||
|
@ -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";
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Hyperbolic Rogue -- control
|
||||
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
|
||||
|
||||
int frames;
|
||||
bool outoffocus = false;
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Hyperbolic Rogue -- debugging routines
|
||||
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
|
||||
|
||||
int steplimit = 0;
|
||||
int cstep;
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Hyperbolic Rogue -- dialogs
|
||||
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
|
||||
|
||||
/* Missing.
|
||||
|
||||
#if ISMOBILE==0
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
||||
|
@ -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;
|
||||
|
2
game.cpp
2
game.cpp
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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:
|
||||
|
||||
|
3
help.cpp
3
help.cpp
@ -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;
|
||||
|
@ -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)
|
||||
|
3
hud.cpp
3
hud.cpp
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
3
init.cpp
3
init.cpp
@ -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
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Hyperbolic Rogue -- Orb Strategy Mode
|
||||
// Copyright (C) 2011-2018 Zeno Rogue, see 'hyper.cpp' for details
|
||||
|
||||
namespace inv {
|
||||
|
||||
bool on;
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
2
orbs.cpp
2
orbs.cpp
@ -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
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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 ===
|
||||
|
||||
|
@ -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;
|
||||
|
3
quit.cpp
3
quit.cpp
@ -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); }
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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];
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
2
tour.cpp
2
tour.cpp
@ -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 {
|
||||
|
||||
|
2
util.cpp
2
util.cpp
@ -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
|
||||
|
||||
|
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user