From 9252bfb61fabea1f45afacb19d805eb5fdd01599 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 28 Sep 2008 21:34:53 +0000 Subject: intro module --- src/core/module.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/core/module.h') diff --git a/src/core/module.h b/src/core/module.h index bd99034..b46c296 100644 --- a/src/core/module.h +++ b/src/core/module.h @@ -30,6 +30,9 @@ public: /// return the name of the module inline std::string const & name() const { return module_name; } + /// label of the module + inline std::string const & label() const { return module_label; } + /*----- mutators -------------------------------------------------- */ /// initialize the game module @@ -69,6 +72,9 @@ public: /// currently loaded module static inline Module *current() { return module_preload; } + /// module registry + static inline Registry & registry() { return module_registry; } + protected: /// set the disconnected state void abort(); @@ -77,6 +83,7 @@ protected: private: std::string module_name; + std::string module_label; static Module *module_preload; -- cgit v1.2.3