Epok Engine

EPOK RUNTIME

epok::nav::World::edge_open

Method · 1 overload

Method

Performs `edge open` as part of the navigation module.

Belongs to
epok::nav::World
Header
navigation.hpp
Overloads
1

Declaration

const
Declaration
bool edge_open(uint16_t from,uint16_t to)const

Performs `edge open` as part of the navigation module.

ParameterTypeMeaning
fromuint16_tValue supplied for from. Keep referenced or pointed-to data valid for the complete call.
touint16_tValue supplied for to. Keep referenced or pointed-to data valid for the complete call.

Returns: bool. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "navigation.hpp"

// Assume these named values have been initialized with valid data:
// uint16_t from
// uint16_t to

epok::nav::World& object = /* obtain a valid instance */;

auto result = object.edge_open(from, to);

Why use it

The method is `const`, so it does not mutate the object through this API surface. The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations.

Declared in runtime/navigation.hpp:60

Related members