summaryrefslogtreecommitdiff
path: root/game/network/network.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-25 17:53:16 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-28 02:10:47 +0100
commitf2954a08d726c3c94212fb848adc3fe3cf298cf1 (patch)
tree343dd4e525c786c069a4eaf4dc6029f9d44b603e /game/network/network.h
parentAdd AnyPtr for accepting pointers of any kind into a function (diff)
downloadilt-f2954a08d726c3c94212fb848adc3fe3cf298cf1.tar.bz2
ilt-f2954a08d726c3c94212fb848adc3fe3cf298cf1.tar.xz
ilt-f2954a08d726c3c94212fb848adc3fe3cf298cf1.zip
Move findDir into member function findNodeDirection
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 25f0200..f1ac23f 100644
--- a/game/network/network.h
+++ b/game/network/network.h
@@ -40,6 +40,8 @@ public:
virtual Link::CCollection addJoins(glm::vec3, glm::vec3) = 0;
virtual Link::CCollection addExtend(glm::vec3, glm::vec3) = 0;
+ virtual float findNodeDirection(Node::AnyCPtr) const = 0;
+
protected:
static void joinLinks(const Link::Ptr & l, const Link::Ptr & ol);
@@ -86,6 +88,8 @@ public:
Link::CCollection addJoins(glm::vec3, glm::vec3) override;
Link::CCollection addExtend(glm::vec3, glm::vec3) override;
+ float findNodeDirection(Node::AnyCPtr) const override;
+
void render(const Shader &) const override;
protected: