diff options
Diffstat (limited to 'src/game/base/station.cc')
-rw-r--r-- | src/game/base/station.cc | 35 |
1 files changed, 35 insertions, 0 deletions
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; +} + +} + |