Epok Engine

EPOK RUNTIME

epok::nav::World::traversal

Method · 1 overload

Method

Performs `traversal` as part of the navigation module.

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

Declaration

const
Declaration
const Traversal* traversal(uint16_t from,uint16_t to)const

Performs `traversal` 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: const Traversal *. 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.traversal(from, to);

Why use it

The method is `const`, so it does not mutate the object through this API surface.

Trade-offs and warnings

Call it only in the lifecycle phase described by the module. Validate indices, capacities and object state before use.

Declared in runtime/navigation.hpp:64

Related members