summaryrefslogtreecommitdiff
path: root/src/being/playerrelations.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-11 20:02:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-11 20:02:59 +0300
commitcaea9420c61be39e1d835e3fa9ed34c2389aa9d5 (patch)
treeefb265160ada3ce02e5c6aa74f5cfa2155d20e89 /src/being/playerrelations.h
parent7b6ae053d36c94d6601276b0c2c8f4b4afaf6422 (diff)
downloadManaVerse-caea9420c61be39e1d835e3fa9ed34c2389aa9d5.tar.gz
ManaVerse-caea9420c61be39e1d835e3fa9ed34c2389aa9d5.tar.bz2
ManaVerse-caea9420c61be39e1d835e3fa9ed34c2389aa9d5.tar.xz
ManaVerse-caea9420c61be39e1d835e3fa9ed34c2389aa9d5.zip
Move playerrelation into separate file.
Diffstat (limited to 'src/being/playerrelations.h')
-rw-r--r--src/being/playerrelations.h40
1 files changed, 2 insertions, 38 deletions
diff --git a/src/being/playerrelations.h b/src/being/playerrelations.h
index c9a884d2e..f0b7b4279 100644
--- a/src/being/playerrelations.h
+++ b/src/being/playerrelations.h
@@ -25,6 +25,8 @@
#include "utils/stringvector.h"
+#include "being/playerrelation.h"
+
#include <list>
#include <map>
@@ -33,44 +35,6 @@
class Being;
class PlayerRelationsListener;
-struct PlayerRelation final
-{
- static const unsigned int EMOTE = (1U << 0);
- static const unsigned int SPEECH_FLOAT = (1U << 1);
- static const unsigned int SPEECH_LOG = (1U << 2);
- static const unsigned int WHISPER = (1U << 3);
- static const unsigned int TRADE = (1U << 4);
- static const unsigned int INVISIBLE = (1U << 5);
- static const unsigned int BLACKLIST = (1U << 6);
- static const unsigned int ENEMY = (1U << 7);
-
- static const unsigned int RELATIONS_NR = 7;
- static const unsigned int RELATION_PERMISSIONS[RELATIONS_NR];
-
- static const unsigned int DEFAULT = EMOTE
- | SPEECH_FLOAT
- | 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);
-
- A_DELETE_COPY(PlayerRelation)
-
- Relation mRelation; // bitmask for all of the above
-};
-
-
/**
* Ignore strategy: describes how we should handle ignores.
*/