Epok Engine

EPOK RUNTIME

epok::nav::move_walk

Function · 1 overload

Function

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

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

Declaration

Declaration
inline bool move_walk(ActorData& data,const Fixed* delta,uint32_t mask)

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

ParameterTypeMeaning
dataActorData &Value supplied for data. Keep referenced or pointed-to data valid for the complete call.
deltaconst Fixed *Value supplied for delta. Keep referenced or pointed-to data valid for the complete call.
maskuint32_tValue supplied for mask. 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:
// ActorData & data
// const Fixed * delta
// uint32_t mask

auto result = epok::nav::move_walk(data, delta, mask);

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. Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/navigation_components.hpp:9

Related members