Why use it
The boolean result makes success, availability or state explicit without exceptions.
EPOK RUNTIME
Method · 1 overload
Performs `move to` as part of the navigation components module.
bool move_to(Fixed x,Fixed y,Fixed z)Performs `move to` as part of the navigation components module.
| Parameter | Type | Meaning |
|---|---|---|
x | Fixed | Value supplied for x. Keep referenced or pointed-to data valid for the complete call. |
y | Fixed | Value supplied for y. Keep referenced or pointed-to data valid for the complete call. |
z | Fixed | Value 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.
#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);The boolean result makes success, availability or state explicit without exceptions.
Check the return value; `false` is part of normal control flow for many PSX resource operations.
Declared in runtime/navigation_components.hpp:101
arrivedPerforms `arrived` as part of the navigation components module.Methodbegin_playBegins play as part of the navigation components module.Methodclass_idPerforms `class id` as part of the navigation components module.Methodend_playEnds play as part of the navigation components module.MethodfailedPerforms `failed` as part of the navigation components module.Methodon_disablePerforms `on disable` as part of the navigation components module.MethodstatusPerforms `status` as part of the navigation components module.MethodstopStops stop as part of the navigation components module.MethodtickPerforms `tick` as part of the navigation components module.Method