diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-16 18:55:24 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-02-16 18:55:24 +0000 |
commit | 4a1b59927f1a5ea692cee71df415ebb54f7a368d (patch) | |
tree | 799e2291e85853a6af613cf36d434978a84e55d9 /game/vehicles/vehicle.h | |
parent | Add a camera controller that follows vehicles (diff) | |
download | ilt-4a1b59927f1a5ea692cee71df415ebb54f7a368d.tar.bz2 ilt-4a1b59927f1a5ea692cee71df415ebb54f7a368d.tar.xz ilt-4a1b59927f1a5ea692cee71df415ebb54f7a368d.zip |
Rename types in LinkHistory
Diffstat (limited to 'game/vehicles/vehicle.h')
-rw-r--r-- | game/vehicles/vehicle.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/game/vehicles/vehicle.h b/game/vehicles/vehicle.h index 15d401b..25ed5bb 100644 --- a/game/vehicles/vehicle.h +++ b/game/vehicles/vehicle.h @@ -11,14 +11,14 @@ class LinkHistory { public: - using Entry = std::pair<LinkWPtr, unsigned char /*dir*/>; - using Return = std::pair<LinkCPtr, unsigned char /*dir*/>; - Return add(const LinkWPtr &, unsigned char); - [[nodiscard]] Return getCurrent() const; - [[nodiscard]] Return getAt(float, float *) const; + using WEntry = std::pair<LinkWPtr, unsigned char /*dir*/>; + using Entry = std::pair<LinkCPtr, unsigned char /*dir*/>; + Entry add(const LinkWPtr &, unsigned char); + [[nodiscard]] Entry getCurrent() const; + [[nodiscard]] Entry getAt(float, float *) const; private: - std::vector<Entry> links; + std::vector<WEntry> links; float totalLen {0.F}; }; |