diff options
Diffstat (limited to 'game/network/link.h')
-rw-r--r-- | game/network/link.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/game/network/link.h b/game/network/link.h index 78d3e91..95c141e 100644 --- a/game/network/link.h +++ b/game/network/link.h @@ -10,7 +10,7 @@ #include <utility> #include <vector> -class Ray; +template<typename> class Ray; // Generic network node // something that can be travelled to @@ -45,7 +45,7 @@ public: NO_MOVE(Link); [[nodiscard]] virtual Location positionAt(float dist, unsigned char start) const = 0; - [[nodiscard]] virtual bool intersectRay(const Ray &) const = 0; + [[nodiscard]] virtual bool intersectRay(const Ray<GlobalPosition3D> &) const = 0; std::array<End, 2> ends; float length; @@ -69,7 +69,7 @@ public: NO_MOVE(LinkStraight); [[nodiscard]] Location positionAt(float dist, unsigned char start) const override; - [[nodiscard]] bool intersectRay(const Ray &) const override; + [[nodiscard]] bool intersectRay(const Ray<GlobalPosition3D> &) const override; }; LinkStraight::~LinkStraight() = default; @@ -82,7 +82,7 @@ public: NO_MOVE(LinkCurve); [[nodiscard]] Location positionAt(float dist, unsigned char start) const override; - [[nodiscard]] bool intersectRay(const Ray &) const override; + [[nodiscard]] bool intersectRay(const Ray<GlobalPosition3D> &) const override; Position3D centreBase; float radius; |