Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 1 overload
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
A number below `below` from the dungeon's own random stream: the same for the same stream, index and seed on every run, so a room can always roll the same enemy.
static uint32_t random(uint32_t stream,uint32_t index,uint32_t below)A number below `below` from the dungeon's own random stream: the same for the same stream, index and seed on every run, so a room can always roll the same enemy.
| Parameter | Type | Meaning |
|---|---|---|
stream | uint32_t | Not documented; consult the linked header. |
index | uint32_t | Not documented; consult the linked header. |
below | uint32_t | Not documented; consult the linked header. |
Returns: uint32_t. Consult the linked header for its meaning.
#include "gameplay_api.hpp"
// Assume these named values have been initialized with valid data:
// uint32_t stream
// uint32_t index
// uint32_t below
auto result = epok::DungeonLibrary::random(stream, index, below);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/gameplay_api.hpp:604
distanceRooms between two rooms on a shortest way, or -1 when there is no way.Methodexplore_everythingPerforms `explore everything` as part of the gameplay api module.Methodexplore_roomRooms the player has entered show on the minimap, with the corridors they open into.Methodforget_exploredPerforms `forget explored` as part of the gameplay api module.Methodfull_map_shownPerforms `full map shown` as part of the gameplay api module.Methodgoal_roomPerforms `goal room` as part of the gameplay api module.MethoditemA key (lock above 0) or other item the recipe placed.Methoditem_countPerforms `item count` as part of the gameplay api module.MethodlockA locked door: its doorway, the room it guards and the lock its key opens.Methodlock_countPerforms `lock count` as part of the gameplay api module.Methodminimap_shownPerforms `minimap shown` as part of the gameplay api module.MethodneighbourThe `index`-th room linked to `room`, or -1.Method