HyperRogue  11.3d
game/visualization engine based on non-Euclidean geometry
Classes | Namespaces | Macros | Functions | Variables
environment.cpp File Reference

game environment: routines related to the game that affect all the map. Monsters to move are detected here, but their moves are implemented in monstermove.cpp More...

#include "hyper.h"

Classes

struct  hr::pathdata
 

Namespaces

 hr
 

Macros

#define HF_BUG   Flag(0)
 
#define HF_EARTH   Flag(1)
 
#define HF_BIRD   Flag(2)
 
#define HF_LEADER   Flag(3)
 
#define HF_HEX   Flag(4)
 
#define HF_WHIRLPOOL   Flag(5)
 
#define HF_WATER   Flag(6)
 
#define HF_AIR   Flag(7)
 
#define HF_MUTANT   Flag(8)
 
#define HF_OUTLAW   Flag(9)
 
#define HF_WHIRLWIND   Flag(10)
 
#define HF_ROSE   Flag(11)
 
#define HF_DRAGON   Flag(12)
 
#define HF_KRAKEN   Flag(13)
 
#define HF_SHARK   Flag(14)
 
#define HF_BATS   Flag(15)
 
#define HF_REPTILE   Flag(16)
 
#define HF_EAGLES   Flag(17)
 
#define HF_SLOW   Flag(18)
 
#define HF_FAST   Flag(19)
 
#define HF_WARP   Flag(20)
 
#define HF_MOUSE   Flag(21)
 
#define HF_RIVER   Flag(22)
 
#define HF_MIRROR   Flag(23)
 
#define HF_VOID   Flag(24)
 
#define HF_HUNTER   Flag(25)
 
#define HF_FAILED_AMBUSH   Flag(26)
 
#define HF_MAGNET   Flag(27)
 
#define HF_HEXD   Flag(28)
 
#define HF_ALT   Flag(29)
 
#define HF_MONK   Flag(30)
 
#define HF_WESTWALL   Flag(31)
 
#define HF_JUMP   Flag(32)
 

Functions

EX int hr::gamerange ()
 
EX void hr::onpath (cell *c, int d)
 
EX void hr::onpath (cell *c, int d, int sp)
 
EX void hr::clear_pathdata ()
 
EX void hr::compute_graphical_distance ()
 
EX void hr::computePathdist (eMonster param)
 
EX void hr::bfs ()
 
EX void hr::moverefresh (bool turn IS(true))
 
EX void hr::settemp (cell *c)
 
EX void hr::findWormIvy (cell *c)
 
EX void hr::monstersTurn ()
 

Variables

EX flagtype hr::havewhat
 
EX flagtype hr::hadwhat
 
EX vector< cell * > hr::worms
 
EX vector< cell * > hr::ivies
 
EX vector< cell * > hr::ghosts
 
EX vector< cell * > hr::golems
 
EX vector< cell * > hr::hexsnakes
 
vector< pair< cell *, eMonster > > hr::tempmonsters
 
EX vector< int > hr::reachedfrom
 
EX int hr::first7
 
EX vector< cell * > hr::dcal
 
EX vector< cell * > hr::pathq
 
EX int hr::statuecount
 
EX int hr::wetslime
 
EX vector< cell * > hr::pathqm
 
EX set< int > hr::snaketypes
 
EX int hr::gamerange_bonus = 0
 
EX cell * hr::pd_from
 
EX int hr::pd_range
 
EX int hr::pathlock = 0
 

Detailed Description

game environment: routines related to the game that affect all the map. Monsters to move are detected here, but their moves are implemented in monstermove.cpp