diff options
Diffstat (limited to 'src/game/base/patrol.cc')
-rw-r--r-- | src/game/base/patrol.cc | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/src/game/base/patrol.cc b/src/game/base/patrol.cc index d1bbe15..6640cb8 100644 --- a/src/game/base/patrol.cc +++ b/src/game/base/patrol.cc @@ -10,41 +10,6 @@ namespace game { -/* --- WayPoint atrol ------------------------------------------------------ */ - -Patrol::WayPoint::WayPoint() { - waypoint_target = 0; - waypoint_cargo = 0; - waypoint_dock = false; -} - -Patrol::WayPoint::~WayPoint() { - waypoint_target = 0; - waypoint_cargo = 0; -} - -void Patrol::WayPoint::set_target_label(const std::string &label) -{ - waypoint_target_label.assign(label); -} - -void Patrol::WayPoint::set_target(core::Entity *entity) -{ - waypoint_target = entity; -} - -void Patrol::WayPoint::set_dock(const bool dock) -{ - waypoint_dock = dock; -} - -void Patrol::WayPoint::set_cargo(Cargo *cargo) -{ - waypoint_cargo = cargo; -} - -/* --- Patrol ------------------------------------------------------ */ - Patrol::Patrol() : core::Entity() { // this is a server-side only entity @@ -224,7 +189,7 @@ void Patrol::print() const con_print << " ^Nmembers ^B" << patrol_members.size() << std::endl; } -Patrol::WayPoint *Patrol::add_waypoint() +WayPoint *Patrol::add_waypoint() { WayPoint *waypoint = new WayPoint(); |