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.
The room after `from` on a shortest way to `to`; `from` when they are the same room, -1 when there is no way.
static int32_t next_room(int32_t from,int32_t to)The room after `from` on a shortest way to `to`; `from` when they are the same room, -1 when there is no way.
| Parameter | Type | Meaning |
|---|---|---|
from | int32_t | Not documented; consult the linked header. |
to | int32_t | Not documented; consult the linked header. |
Returns: int32_t. Consult the linked header for its meaning.
#include "gameplay_api.hpp"
// Assume these named values have been initialized with valid data:
// int32_t from
// int32_t to
auto result = epok::DungeonLibrary::next_room(from, to);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/gameplay_api.hpp:589
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