blob: ce18930c685415a73753c782f66ffc730773c906 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
/*
base/waypoint.h
This file is part of the Osirion project and is distributed under
the terms and conditions of the GNU General Public License version 2
*/
#ifndef __INCLUDED_BASE_WAYPOINT_H__
#define __INCLUDED_BASE_WAYPOINT_H__
#include "core/entity.h"
#include "base/cargo.h"
namespace game
{
/**
* @brief a node in the patrol's travel path
* */
class WayPoint {
public:
WayPoint();
~WayPoint();
inline core::Entity *target()
{
return waypoint_target;
}
inline const std::string & target_label() const {
return waypoint_target_label;
}
inline const bool dock() const {
return waypoint_dock;
}
inline const Cargo *cargo() const {
return waypoint_cargo;
}
void set_target(core::Entity *entity);
void set_target_label(const std::string &label);
void set_cargo(Cargo *cargo);
void set_dock(const bool dock);
private:
std::string waypoint_target_label;
core::Entity *waypoint_target;
Cargo *waypoint_cargo;
bool waypoint_dock;
};
} // namespace game
#endif // __INCLUDED_BASE_WAYPOINT_H__
|