diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-10 18:02:13 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-10 18:02:13 +0000 |
commit | 03d5bc014c0e815c6aaeec16d81e225e08732ab0 (patch) | |
tree | 05aa0464284059bdc05d96f3cc17e081a0da78ee /src/game/base/station.cc | |
parent | a1eb1b4dc4d81df724ee43fc4e895dd22e81760f (diff) |
adds jumpgate, station, ship dealer
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; +} + +} + |