Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 1 overload
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Whether a world point is inside the region and free to walk on.
bool is_walkable(Fixed x, Fixed y) constWhether a world point is inside the region and free to walk on.
| Parameter | Type | Meaning |
|---|---|---|
x | Fixed | Not documented; consult the linked header. |
y | Fixed | Not documented; consult the linked header. |
Returns: bool. Consult the linked header for its meaning.
#include "world2d_navigation.hpp"
// Assume these named values have been initialized with valid data:
// Fixed x
// Fixed y
epok::NavigationRegion2DComponent& object = /* obtain a valid instance */;
auto result = object.is_walkable(x, y);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/world2d_navigation.hpp:437
~NavigationRegion2DComponentReleases the resources owned by `epok::NavigationRegion2DComponent`.destructorclass_idPerforms `class id` as part of the world2d navigation module.MethodcoversWhether the region is the one to plan from `p`: inside the grid, or on the mesh.Methodfind_pathFinds path as part of the world2d navigation module.Methodis_enabledReports whether enabled as part of the world2d navigation module.Methodlevel_attachedPerforms `level attached` as part of the world2d navigation module.Methodset_enabledSets enabled as part of the world2d navigation module.Method