From 59d0e4b1d9fc1f876ac98d677e48d818affe3d42 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 May 2015 17:53:45 +0300 Subject: Convert Relation enum into strong typed enum. --- src/enums/being/relation.h | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'src/enums/being') 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 -- cgit v1.2.3-70-g09d2