summaryrefslogtreecommitdiff
path: root/src/being/playerrelations.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 17:45:27 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 17:45:27 +0300
commitaadf40739c45c3396ace5766dd9c60db0c3b1ccc (patch)
treea6d2ca5fb86849ae18586b728bfcd9e716f5635f /src/being/playerrelations.h
parent2a33b736dc93251bf7a72364c5f818142362a3ce (diff)
downloadplus-aadf40739c45c3396ace5766dd9c60db0c3b1ccc.tar.gz
plus-aadf40739c45c3396ace5766dd9c60db0c3b1ccc.tar.bz2
plus-aadf40739c45c3396ace5766dd9c60db0c3b1ccc.tar.xz
plus-aadf40739c45c3396ace5766dd9c60db0c3b1ccc.zip
Move relation enum into separate file.
Diffstat (limited to 'src/being/playerrelations.h')
-rw-r--r--src/being/playerrelations.h9
1 files changed, 5 insertions, 4 deletions
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;
/**