Fix missing public keywords
This commit is contained in:
parent
fd20de9dcc
commit
1bb02f8e18
@ -12,6 +12,7 @@ namespace Gedeng {
|
|||||||
// 4. Get a path between the desired points via NavMesh::get_path
|
// 4. Get a path between the desired points via NavMesh::get_path
|
||||||
// 5. Position an entity along this path via Path::get_interpolated_position
|
// 5. Position an entity along this path via Path::get_interpolated_position
|
||||||
class NavMesh {
|
class NavMesh {
|
||||||
|
public:
|
||||||
// Build the NavMesh from all collider geometry in the given node and all
|
// Build the NavMesh from all collider geometry in the given node and all
|
||||||
// its children.
|
// its children.
|
||||||
void create_from_nodes(const Node &root);
|
void create_from_nodes(const Node &root);
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
namespace Gedeng {
|
namespace Gedeng {
|
||||||
|
|
||||||
class Node {
|
class Node {
|
||||||
|
public:
|
||||||
// Add the given node as a child of this node.
|
// Add the given node as a child of this node.
|
||||||
void add_child(const Node &node);
|
void add_child(const Node &node);
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
namespace Gedeng {
|
namespace Gedeng {
|
||||||
|
|
||||||
class NodeSystem {
|
class NodeSystem {
|
||||||
|
public:
|
||||||
// Load a node with all its children from a node definition file (`.gnd`) on
|
// Load a node with all its children from a node definition file (`.gnd`) on
|
||||||
// disk.
|
// disk.
|
||||||
static Node load_nodes_from_disk(const String &path);
|
static Node load_nodes_from_disk(const String &path);
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
namespace Gedeng {
|
namespace Gedeng {
|
||||||
|
|
||||||
class Path {
|
class Path {
|
||||||
|
public:
|
||||||
// Return a Vector3 on the path. `t` should be between 0 (path begin) and 1
|
// Return a Vector3 on the path. `t` should be between 0 (path begin) and 1
|
||||||
// (path end).
|
// (path end).
|
||||||
Vector3 get_interpolated_position(float t) const;
|
Vector3 get_interpolated_position(float t) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user