Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-11-10 18:02:13 +0000
committerStijn Buys <ingar@osirion.org>2008-11-10 18:02:13 +0000
commit03d5bc014c0e815c6aaeec16d81e225e08732ab0 (patch)
tree05aa0464284059bdc05d96f3cc17e081a0da78ee /src/game/base/station.cc
parenta1eb1b4dc4d81df724ee43fc4e895dd22e81760f (diff)
adds jumpgate, station, ship dealer
Diffstat (limited to 'src/game/base/station.cc')
-rw-r--r--src/game/base/station.cc35
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;
+}
+
+}
+