24 #ifndef BEING_PLAYERRELATIONS_H
25 #define BEING_PLAYERRELATIONS_H
76 const unsigned int flags)
114 void setDefault(
const unsigned int permissions);
unsigned int mDefaultPermissions
StringVect * getPlayers() const
void setDefault(const unsigned int permissions)
void setPlayerIgnoreStrategy(PlayerIgnoreStrategy *const strategy)
void addListener(PlayerRelationsListener *const listener)
bool isGoodName(Being *const being) const
void setPersistIgnores(const bool value)
std::vector< PlayerIgnoreStrategy * > mIgnoreStrategies
PlayerIgnoreStrategy * mIgnoreStrategy
StringVect * getPlayersByRelation(const RelationT rel) const
void removeListener(PlayerRelationsListener *const listener)
std::vector< PlayerIgnoreStrategy * > * getPlayerIgnoreStrategies()
unsigned int getDefault() const
static bool checkName(const std::string &name)
~PlayerRelationsManager()
void ignoreTrade(const std::string &name) const
RelationT getRelation(const std::string &name) const
void signalUpdate(const std::string &name)
bool hasPermission(const Being *const being, const unsigned int flags) const
bool checkBadRelation(const std::string &name) const
bool getPersistIgnores() const
int getPlayerIgnoreStrategyIndex(const std::string &shortname)
std::map< std::string, PlayerRelation * > mRelations
const PlayerIgnoreStrategy * getPlayerIgnoreStrategy() const
unsigned int checkPermissionSilently(const std::string &player_name, const unsigned int flags) const
void removePlayer(const std::string &name)
std::list< PlayerRelationsListener * > mListeners
void setRelation(const std::string &name, const RelationT relation)
#define A_DELETE_COPY(func)
PlayerRelationsManager playerRelations
std::vector< std::string > StringVect