|
HyperRogue
11.3d
game/visualization engine based on non-Euclidean geometry
|
Public Attributes | |
| eLand | land: 8 |
| eWall | wall: 8 |
| eMonster | monst: 8 |
| eItem | item: 8 |
| eLand | barleft: 8 |
| eLand | barright: 8 |
| unsigned | ligon: 1 |
| signed | mpdist: 7 |
| minimum player distance, the smaller value, the more generated it is */ | |
| signed | pathdist: 8 |
| distance from the target – actual meaning may change | |
| signed | cpdist: 8 |
| current distance to the player | |
| unsigned | mondir: 8 |
| which direction the monster is facing (if relevant), also used for boats | |
| unsigned | bardir: 8 |
| may equal NODIR (no barrier here), NOBARRIERS (barriers not allowed here), or the barrier direction | |
| unsigned | stuntime: 8 |
| for stunned monsters, stun time left; also used for Mutant Ivy timing | |
| unsigned | hitpoints: 7 |
| hitpoints left, for Palace monsters, Dragons, Krakens etc. Also reused as cpid for mirrors | |
| unsigned | monmirror: 1 |
| monster mirroring state for nonorientable geometries | |
| unsigned | landflags: 8 |
| some lands need additional flags | |
| union { | |
| int32_t landpar | |
| unsigned int landpar_color | |
| float heat | |
| char bytes [4] | |
| struct fieldinfo { | |
| uint16_t fieldval | |
| unsigned rval: 4 | |
| unsigned flowerdist: 4 | |
| unsigned walldist: 4 | |
| unsigned walldist2: 4 | |
| } fi | |
| } | LHU |
| char | wparam |
Cell information for the game. struct cell builds on this
| eLand hr::gcell::land |
which land does this cell belong to
| eWall hr::gcell::wall |
wall type (waNone for no walls)
| eMonster hr::gcell::monst |
monster on this cell – note that player characters are handled separately
| eItem hr::gcell::item |
item on this cell
| eLand hr::gcell::barleft |
if this is a barrier, what lands on are on the sides?
| unsigned hr::gcell::ligon |
is it currently sparkling with lightning?
| union { ... } hr::gcell::LHU |
'landparam' is used for: heat in Icy/Cocytus; heat in Dry (0..10); CR2 structure; hive Weird Rock color / pheromones; Ocean/coast depth; Bomberbird Egg hatch time / mine marking; number of Ancient Jewelry; improved tracking in Trollheim
| char hr::gcell::wparam |
wall parameter, used e.g. for remaining power of Bonfires and Thumpers
1.8.17