From a95028547981614e06ea7a6d22b853b85418cea3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 15 Apr 2009 17:08:51 +0000 Subject: added info registry, list_info added network info transfer added info based buy menu and related game changes --- src/game/base/shipmodel.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game/base/shipmodel.h') diff --git a/src/game/base/shipmodel.h b/src/game/base/shipmodel.h index c194dc0..9bdf4f5 100644 --- a/src/game/base/shipmodel.h +++ b/src/game/base/shipmodel.h @@ -10,6 +10,8 @@ #include #include +#include "core/info.h" + namespace game { /// ship model specifications @@ -60,6 +62,9 @@ public: /// set size of the cargo hold inline void set_maxcargo(const float maxcargo) { shipmodel_maxcargo = maxcargo; } + /// generate an info object for this shipmodel + void generate_info(core::Info *info); + /// indicates of this model can be equiped with a jump drive bool shipmodel_jumpdrive; @@ -67,6 +72,9 @@ public: std::string shipmodel_name; std::string shipmodel_modelname; + /// info text + core::Info::Text shipmodel_infotext; + /* ---- static registry ------------------------------------ */ typedef std::map::iterator iterator; -- cgit v1.2.3