Epok Engine

EPOK RUNTIME

epok::nav::World::add_obstacle

Method · 1 overload

Method

Adds obstacle as part of the navigation module.

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

Declaration

Declaration
uint16_t add_obstacle()

Adds obstacle as part of the navigation module.

This overload takes no parameters.

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

Example

C++ example
#include "navigation.hpp"

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

auto result = object.add_obstacle();

Why use it

It provides direct, allocation-conscious access to the navigation module. No exception-based error path is implied by the signature.

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:52

Related members