summaryrefslogtreecommitdiff
path: root/game/network/link.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-21 14:10:01 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-21 14:10:01 +0000
commit2e66a686cd6cf589c583060921430a94b2849e83 (patch)
tree8f5a94e82848cbcb09cdf47d75ec1b63653c5eb6 /game/network/link.h
parentSet height when reusing vertices during setHeights (diff)
downloadilt-2e66a686cd6cf589c583060921430a94b2849e83.tar.bz2
ilt-2e66a686cd6cf589c583060921430a94b2849e83.tar.xz
ilt-2e66a686cd6cf589c583060921430a94b2849e83.zip
Expose network link interface to define a base area of the link
Diffstat (limited to 'game/network/link.h')
-rw-r--r--game/network/link.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/game/network/link.h b/game/network/link.h
index 4cca52c..59bbb65 100644
--- a/game/network/link.h
+++ b/game/network/link.h
@@ -45,6 +45,7 @@ public:
[[nodiscard]] virtual Location positionAt(RelativeDistance dist, unsigned char start) const = 0;
[[nodiscard]] virtual bool intersectRay(const Ray<GlobalPosition3D> &) const = 0;
+ [[nodiscard]] virtual std::vector<GlobalPosition3D> getBase(RelativeDistance width) const = 0;
std::array<End, 2> ends;
float length;
@@ -69,6 +70,7 @@ public:
[[nodiscard]] Location positionAt(RelativeDistance dist, unsigned char start) const override;
[[nodiscard]] bool intersectRay(const Ray<GlobalPosition3D> &) const override;
+ [[nodiscard]] std::vector<GlobalPosition3D> getBase(RelativeDistance width) const override;
};
LinkStraight::~LinkStraight() = default;
@@ -82,6 +84,7 @@ public:
[[nodiscard]] Location positionAt(RelativeDistance dist, unsigned char start) const override;
[[nodiscard]] bool intersectRay(const Ray<GlobalPosition3D> &) const override;
+ [[nodiscard]] std::vector<GlobalPosition3D> getBase(RelativeDistance width) const override;
GlobalPosition3D centreBase;
RelativeDistance radius;