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/playerrelation.h | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'src/being/playerrelation.h') diff --git a/src/being/playerrelation.h b/src/being/playerrelation.h index 5f6e1f42d..22fb3cb64 100644 --- a/src/being/playerrelation.h +++ b/src/being/playerrelation.h @@ -23,6 +23,8 @@ #ifndef BEING_PLAYERRELATION_H #define BEING_PLAYERRELATION_H +#include "enums/being/relation.h" + #include "localconsts.h" struct PlayerRelation final @@ -44,22 +46,12 @@ struct PlayerRelation final | SPEECH_LOG | WHISPER | TRADE; - enum Relation - { - NEUTRAL = 0, - FRIEND = 1, - DISREGARDED = 2, - IGNORED = 3, - ERASED = 4, - BLACKLISTED = 5, - ENEMY2 = 6 - }; - explicit PlayerRelation(const Relation relation); + explicit PlayerRelation(const RelationT relation); A_DELETE_COPY(PlayerRelation) - Relation mRelation; // bitmask for all of the above + RelationT mRelation; // bitmask for all of the above }; #endif // BEING_PLAYERRELATION_H -- cgit v1.2.3-70-g09d2