From 03d5bc014c0e815c6aaeec16d81e225e08732ab0 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 10 Nov 2008 18:02:13 +0000 Subject: adds jumpgate, station, ship dealer --- src/game/base/station.cc | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/game/base/station.cc (limited to 'src/game/base/station.cc') diff --git a/src/game/base/station.cc b/src/game/base/station.cc new file mode 100644 index 0000000..4efd662 --- /dev/null +++ b/src/game/base/station.cc @@ -0,0 +1,35 @@ +/* + base/station.cc + This file is part of the Osirion project and is distributed under + the terms and conditions of the GNU General Public License version 2 +*/ + +#include "base/game.h" +#include "base/station.h" +#include "sys/sys.h" + +namespace game { + +Station::Station() : Entity() +{ + entity_moduletypeid = station_enttype; + set_flag(core::Entity::Dockable); + station_shipdealer = 0; +} + +Station::~Station() +{ + if (station_shipdealer) + delete station_shipdealer; +} + +void Station::set_shipdealer(ShipDealer *shipdealer) +{ + if (station_shipdealer) + delete station_shipdealer; + + station_shipdealer = shipdealer; +} + +} + -- cgit v1.2.3