From 1bb02f8e1886a5e48b306b242042f09cec57dc63 Mon Sep 17 00:00:00 2001 From: karl Date: Sun, 11 Apr 2021 23:23:04 +0200 Subject: [PATCH] Fix missing public keywords --- include/Gedeng/NavMesh.h | 1 + include/Gedeng/Node.h | 1 + include/Gedeng/NodeSystem.h | 1 + include/Gedeng/Path.h | 1 + 4 files changed, 4 insertions(+) diff --git a/include/Gedeng/NavMesh.h b/include/Gedeng/NavMesh.h index a52143e..b011e60 100644 --- a/include/Gedeng/NavMesh.h +++ b/include/Gedeng/NavMesh.h @@ -12,6 +12,7 @@ namespace Gedeng { // 4. Get a path between the desired points via NavMesh::get_path // 5. Position an entity along this path via Path::get_interpolated_position class NavMesh { + public: // Build the NavMesh from all collider geometry in the given node and all // its children. void create_from_nodes(const Node &root); diff --git a/include/Gedeng/Node.h b/include/Gedeng/Node.h index 0e41a76..bef5a95 100644 --- a/include/Gedeng/Node.h +++ b/include/Gedeng/Node.h @@ -5,6 +5,7 @@ namespace Gedeng { class Node { + public: // Add the given node as a child of this node. void add_child(const Node &node); diff --git a/include/Gedeng/NodeSystem.h b/include/Gedeng/NodeSystem.h index 7458d17..ccaef03 100644 --- a/include/Gedeng/NodeSystem.h +++ b/include/Gedeng/NodeSystem.h @@ -5,6 +5,7 @@ namespace Gedeng { class NodeSystem { + public: // Load a node with all its children from a node definition file (`.gnd`) on // disk. static Node load_nodes_from_disk(const String &path); diff --git a/include/Gedeng/Path.h b/include/Gedeng/Path.h index 8b53c85..270ae5e 100644 --- a/include/Gedeng/Path.h +++ b/include/Gedeng/Path.h @@ -4,6 +4,7 @@ namespace Gedeng { class Path { + public: // Return a Vector3 on the path. `t` should be between 0 (path begin) and 1 // (path end). Vector3 get_interpolated_position(float t) const;