diff options
Diffstat (limited to 'src/being/playerrelations.h')
-rw-r--r-- | src/being/playerrelations.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/being/playerrelations.h b/src/being/playerrelations.h index f37e33d89..360930879 100644 --- a/src/being/playerrelations.h +++ b/src/being/playerrelations.h @@ -25,6 +25,8 @@ #include "utils/stringvector.h" +#include "being/playerrelationslistener.h" + #include <list> #include <map> @@ -97,21 +99,6 @@ class PlayerIgnoreStrategy } }; -class PlayerRelationsListener -{ - public: - virtual ~PlayerRelationsListener() - { } - - virtual void updatedPlayer(const std::string &name) = 0; - - virtual void updateAll() = 0; - - protected: - PlayerRelationsListener() - { } -}; - /** * Player relations class, represents any particular relations and/or * preferences the user of the local client has wrt other players (identified @@ -270,7 +257,7 @@ class PlayerRelationsManager final // ignored data upon reloading unsigned int mDefaultPermissions; - bool checkName(const std::string &name) const A_WARN_UNUSED; + static bool checkName(const std::string &name) A_WARN_UNUSED; PlayerIgnoreStrategy *mIgnoreStrategy; std::map<std::string, PlayerRelation *> mRelations; |