From aadf40739c45c3396ace5766dd9c60db0c3b1ccc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 17:45:27 +0300 Subject: Move relation enum into separate file. --- src/being/playerrelations.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/being/playerrelations.h') diff --git a/src/being/playerrelations.h b/src/being/playerrelations.h index 87cd83d75..0976fe167 100644 --- a/src/being/playerrelations.h +++ b/src/being/playerrelations.h @@ -23,6 +23,8 @@ #ifndef BEING_PLAYERRELATIONS_H #define BEING_PLAYERRELATIONS_H +#include "enums/being/relation.h" + #include "utils/stringvector.h" #include "being/playerrelation.h" @@ -88,13 +90,12 @@ class PlayerRelationsManager final * Updates the relationship with this player. */ void setRelation(const std::string &name, - const PlayerRelation::Relation relation); + const RelationT relation); /** * Updates the relationship with this player. */ - PlayerRelation::Relation getRelation(const std::string &name) - const A_WARN_UNUSED; + RelationT getRelation(const std::string &name) const A_WARN_UNUSED; /** * Deletes the information recorded for a player. @@ -151,7 +152,7 @@ class PlayerRelationsManager final */ StringVect *getPlayers() const A_WARN_UNUSED; - StringVect *getPlayersByRelation(const PlayerRelation::Relation rel) + StringVect *getPlayersByRelation(const RelationT rel) const A_WARN_UNUSED; /** -- cgit v1.2.3-70-g09d2