Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: 655dab3c144d23e73aec66b5d3335c8c5318c7ed (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
/*
   base/waypoint.cc
   This file is part of the Osirion project and is distributed under
   the terms of the GNU General Public License version 2
*/

#include "base/waypoint.h"

namespace game {
		
WayPoint::WayPoint() {
	waypoint_target = 0;
	waypoint_cargo = 0;
	waypoint_dock = false;
}

WayPoint::~WayPoint() {
	waypoint_target = 0;
	waypoint_cargo = 0;
}

void WayPoint::set_target_label(const std::string &label)
{
	waypoint_target_label.assign(label);
}

void WayPoint::set_target(core::Entity *entity)
{
	waypoint_target = entity;
}

void WayPoint::set_dock(const bool dock)
{
	waypoint_dock = dock;
}

void WayPoint::set_cargo(Cargo *cargo)
{
	waypoint_cargo = cargo;
}

} //namespace game