summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 17:53:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 17:53:45 +0300
commit59d0e4b1d9fc1f876ac98d677e48d818affe3d42 (patch)
tree08db9056d6905fc8263d197cb497e898cfb78905
parentaadf40739c45c3396ace5766dd9c60db0c3b1ccc (diff)
downloadManaVerse-59d0e4b1d9fc1f876ac98d677e48d818affe3d42.tar.gz
ManaVerse-59d0e4b1d9fc1f876ac98d677e48d818affe3d42.tar.bz2
ManaVerse-59d0e4b1d9fc1f876ac98d677e48d818affe3d42.tar.xz
ManaVerse-59d0e4b1d9fc1f876ac98d677e48d818affe3d42.zip
Convert Relation enum into strong typed enum.
-rw-r--r--src/enums/being/relation.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/enums/being/relation.h b/src/enums/being/relation.h
index 31408ef7b..096943521 100644
--- a/src/enums/being/relation.h
+++ b/src/enums/being/relation.h
@@ -23,20 +23,18 @@
#ifndef ENUMS_BEING_RELATION_H
#define ENUMS_BEING_RELATION_H
-namespace Relation
-{
- enum T
- {
- NEUTRAL = 0,
- FRIEND = 1,
- DISREGARDED = 2,
- IGNORED = 3,
- ERASED = 4,
- BLACKLISTED = 5,
- ENEMY2 = 6
- };
-} // namespace Relation
+#include "enums/simpletypes/enumdefines.h"
-typedef Relation::T RelationT;
+enumStart(Relation)
+{
+ NEUTRAL = 0,
+ FRIEND = 1,
+ DISREGARDED = 2,
+ IGNORED = 3,
+ ERASED = 4,
+ BLACKLISTED = 5,
+ ENEMY2 = 6
+}
+enumEnd(Relation);
#endif // ENUMS_BEING_RELATION_H