summaryrefslogtreecommitdiff
path: root/game/network/network.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-03-13 14:42:37 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-03-13 14:42:37 +0000
commit56782dbb368117faaddda0a45ca2ecb753af90d7 (patch)
treeb80b09f507fe3932c0404474743c43a0126b88eb /game/network/network.h
parentOnly attempt to render renderable networks (diff)
downloadilt-56782dbb368117faaddda0a45ca2ecb753af90d7.tar.bz2
ilt-56782dbb368117faaddda0a45ca2ecb753af90d7.tar.xz
ilt-56782dbb368117faaddda0a45ca2ecb753af90d7.zip
Initial commit of the route finder
Diffstat (limited to 'game/network/network.h')
-rw-r--r--game/network/network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/game/network/network.h b/game/network/network.h
index c6d4dfa..f84c90c 100644
--- a/game/network/network.h
+++ b/game/network/network.h
@@ -10,6 +10,7 @@
#include <sorting.hpp>
#include <string>
#include <utility>
+#include <vector>
class Texture;
class Shader;
@@ -22,6 +23,9 @@ public:
[[nodiscard]] NodePtr nodeAt(glm::vec3);
[[nodiscard]] std::pair<NodePtr, bool> newNodeAt(glm::vec3);
+ [[nodiscard]] std::vector<LinkWPtr> routeFromTo(const Link::End &, glm::vec3) const;
+ [[nodiscard]] std::vector<LinkWPtr> routeFromTo(const Link::End &, const NodePtr &) const;
+
protected:
static void joinLinks(const LinkPtr & l, const LinkPtr & ol);