summaryrefslogtreecommitdiff
path: root/src/being/playerrelation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/being/playerrelation.h')
-rw-r--r--src/being/playerrelation.h16
1 files changed, 4 insertions, 12 deletions
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