diff options
author | Stijn Buys <ingar@osirion.org> | 2013-11-10 17:13:41 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-11-10 17:13:41 +0000 |
commit | 5f0958c121a246d445507313984358ff8a6df3fa (patch) | |
tree | 34f0b53f0e7de9bee09ad8bcafa4228654365ae5 /src/game/base/faction.h | |
parent | 82f0ac05f5da2d89c4a544ca22ff47e116e6dd97 (diff) |
Adjust reputation on NPC kills,
refresh reputation window if required.
Diffstat (limited to 'src/game/base/faction.h')
-rw-r--r-- | src/game/base/faction.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/game/base/faction.h b/src/game/base/faction.h index b459899..3f6a1e5 100644 --- a/src/game/base/faction.h +++ b/src/game/base/faction.h @@ -67,6 +67,16 @@ public: faction_color_second.assign(color_second); } + /** + * @brief adjust player reputation for a kill of a member of this faction + */ + void apply_kill(core::Player *player) const; + + /** + * @brief adjust player reputation for buying from/selling to this faction + */ + void apply_sale(core::Player *player, const float amount) const; + /* --- static ----------------------------------------------------- */ /** @@ -87,6 +97,7 @@ public: * @brief apply default reputation * */ static void apply_default(core::Reputation & reputation); + static inline const core::InfoType *infotype() { return faction_infotype; |