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/shipdealer.h
parenta1eb1b4dc4d81df724ee43fc4e895dd22e81760f (diff)
adds jumpgate, station, ship dealer
Diffstat (limited to 'src/game/base/shipdealer.h')
-rw-r--r--src/game/base/shipdealer.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/game/base/shipdealer.h b/src/game/base/shipdealer.h
new file mode 100644
index 0000000..48f9835
--- /dev/null
+++ b/src/game/base/shipdealer.h
@@ -0,0 +1,43 @@
+/*
+ base/shipdealer.h
+ This file is part of the Osirion project and is distributed under
+ the terms and conditions of the GNU General Public License version 2
+*/
+
+#ifndef __INCLUDED_BASE_SHIPDEALER_H__
+#define __INCLUDED_BASE_SHIPDEALER_H__
+
+#include <list>
+
+#include "base/shipmodel.h"
+#include "core/entity.h"
+
+namespace game {
+
+class ShipDealer
+{
+public:
+ typedef std::list<ShipModel *> Models;
+
+ ShipDealer();
+ ~ShipDealer();
+
+ /// add a ship model to the dealer list
+ ShipModel *add(const std::string &modelname);
+
+ /// find a ship model in the dealer list
+ ShipModel *find(const std::string &modelname) const;
+
+ /// find a ship model in the dealer list
+ ShipModel *find(ShipModel *shipmodel) const;
+
+ static void func_buy(core::Player *player, const std::string &args);
+
+private:
+ Models dealer_models;
+};
+
+}
+
+#endif // __INCLUDED_BASE_SHIPDEALER_H__
+