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
5
class
WayPoint
;
6
class
Serialize
;
7
8
class
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
};
Serialize
Definition
serialize.h:33
WayPath
Definition
waypath.h:8
WayPath::WayPath
WayPath()
Definition
waypath.cpp:6
WayPath::add
void add(const WayPoint &p)
Definition
waypath.h:15
WayPath::save
void save(Serialize &fout)
Definition
waypath.cpp:18
WayPath::first
const WayPoint * first() const
Definition
waypath.cpp:43
WayPath::last
const WayPoint * last() const
Definition
waypath.cpp:49
WayPath::load
void load(Serialize &fin)
Definition
waypath.cpp:9
WayPath::pop
const WayPoint * pop()
Definition
waypath.cpp:35
WayPath::clear
void clear()
Definition
waypath.cpp:25
WayPath::reverse
void reverse()
Definition
waypath.cpp:29
WayPoint
Definition
waypoint.h:11
game
world
waypath.h
Generated by
1.9.8