blob: 31d0023611342da6acb3fd311d0a6fdfb87e32ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef LINKHISTORY_H
#define LINKHISTORY_H
#include <game/network/link.h>
#include <utility>
#include <vector>
class LinkHistory {
public:
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<WEntry> links;
float totalLen {0.F};
};
#endif
|