diff options
Diffstat (limited to 'src/game/base/faction.h')
-rw-r--r-- | src/game/base/faction.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/game/base/faction.h b/src/game/base/faction.h index 3f6a1e5..551ce7b 100644 --- a/src/game/base/faction.h +++ b/src/game/base/faction.h @@ -84,6 +84,9 @@ public: */ static bool init(); + /** + * @brief cleanup routines + */ static void done(); /** @@ -91,6 +94,9 @@ public: */ static void list(); + /** + * @brief returns a pointer to the faction with the given label, returns 0 if not found. + * */ static Faction *find(const std::string & label); /** @@ -98,11 +104,23 @@ public: * */ static void apply_default(core::Reputation & reputation); - + /** + * @brief faction info type + * */ static inline const core::InfoType *infotype() { return faction_infotype; } + /** + * @brief default faction + * This faction represents the default player reputation. + * No ships should be a member of this faction, not even player ships. + * */ + static inline const Faction *default_faction() + { + return faction_default; + } + private: /* --- attributes ------------------------------------------------- */ |