Epok Engine

EPOK RUNTIME

epok::NavigationAgentComponent::move_to

Method · 1 overload

Method

Performs `move to` as part of the navigation components module.

Belongs to
epok::NavigationAgentComponent
Header
navigation_components.hpp
Overloads
1

Declaration

Declaration
bool move_to(Fixed x,Fixed y,Fixed z)

Performs `move to` as part of the navigation components module.

ParameterTypeMeaning
xFixedValue supplied for x. Keep referenced or pointed-to data valid for the complete call.
yFixedValue supplied for y. Keep referenced or pointed-to data valid for the complete call.
zFixedValue supplied for z. 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_components.hpp"

// Assume these named values have been initialized with valid data:
// Fixed x
// Fixed y
// Fixed z

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

auto result = object.move_to(x, y, z);

Why use it

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_components.hpp:101

Related members