OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
waypath.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5class WayPoint;
6class Serialize;
7
8class WayPath final {
9 public:
10 WayPath();
11
12 void load(Serialize& fin);
13 void save(Serialize& fout);
14
15 void add(const WayPoint& p){ dat.push_back(&p); }
16 void clear();
17 void reverse();
18
19 const WayPoint* pop();
20 const WayPoint* first() const;
21 const WayPoint* last() const;
22
23 private:
24 std::vector<const WayPoint*> dat;
25 };
WayPath()
Definition waypath.cpp:6
void add(const WayPoint &p)
Definition waypath.h:15
void save(Serialize &fout)
Definition waypath.cpp:18
const WayPoint * first() const
Definition waypath.cpp:43
const WayPoint * last() const
Definition waypath.cpp:49
void load(Serialize &fin)
Definition waypath.cpp:9
const WayPoint * pop()
Definition waypath.cpp:35
void clear()
Definition waypath.cpp:25
void reverse()
Definition waypath.cpp:29