aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.h
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2010-05-20 23:35:27 +0200
committerSpp <spp@jorge.gr>2010-05-20 23:35:27 +0200
commitdefd13197071f4fe3975183ca67e4e8fabee8fad (patch)
treefffdbe39560b49fbc09355c98051e5d1908d95e5 /src/game/Player.h
parente6ba336f919e1e25e685964ad13992edf312d42b (diff)
Dungeon Finder: Initial setup and dungeon listing
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.h')
-rw-r--r--src/game/Player.h69
1 files changed, 1 insertions, 68 deletions
diff --git a/src/game/Player.h b/src/game/Player.h
index b1ab6a683aa..5ea6e22154f 100644
--- a/src/game/Player.h
+++ b/src/game/Player.h
@@ -39,6 +39,7 @@
#include "ReputationMgr.h"
#include "BattleGround.h"
#include "DBCEnums.h"
+#include "LFG.h"
#include<string>
#include<vector>
@@ -337,74 +338,6 @@ struct EnchantDuration
typedef std::list<EnchantDuration> EnchantDurationList;
typedef std::list<Item*> ItemDurationList;
-enum LfgType
-{
- LFG_TYPE_NONE = 0,
- LFG_TYPE_DUNGEON = 1,
- LFG_TYPE_RAID = 2,
- LFG_TYPE_QUEST = 3,
- LFG_TYPE_ZONE = 4,
- LFG_TYPE_HEROIC_DUNGEON = 5,
- LFG_TYPE_RANDOM_DUNGEON = 6
-};
-
-enum LfgRoles
-{
- LEADER = 0x01,
- TANK = 0x02,
- HEALER = 0x04,
- DAMAGE = 0x08
-};
-
-struct LookingForGroupSlot
-{
- LookingForGroupSlot() : entry(0), type(0) {}
- bool Empty() const { return !entry && !type; }
- void Clear() { entry = 0; type = 0; }
- void Set(uint32 _entry, uint32 _type) { entry = _entry; type = _type; }
- bool Is(uint32 _entry, uint32 _type) const { return entry == _entry && type == _type; }
- bool canAutoJoin() const { return entry && (type == LFG_TYPE_DUNGEON || type == LFG_TYPE_HEROIC_DUNGEON); }
-
- uint32 entry;
- uint32 type;
-};
-
-#define MAX_LOOKING_FOR_GROUP_SLOT 3
-
-struct LookingForGroup
-{
- LookingForGroup() {}
- bool HaveInSlot(LookingForGroupSlot const& slot) const { return HaveInSlot(slot.entry, slot.type); }
- bool HaveInSlot(uint32 _entry, uint32 _type) const
- {
- for (uint8 i = 0; i < MAX_LOOKING_FOR_GROUP_SLOT; ++i)
- if (slots[i].Is(_entry, _type))
- return true;
- return false;
- }
-
- bool canAutoJoin() const
- {
- for (uint8 i = 0; i < MAX_LOOKING_FOR_GROUP_SLOT; ++i)
- if (slots[i].canAutoJoin())
- return true;
- return false;
- }
-
- bool Empty() const
- {
- for (uint8 i = 0; i < MAX_LOOKING_FOR_GROUP_SLOT; ++i)
- if (!slots[i].Empty())
- return false;
- return more.Empty();
- }
-
- LookingForGroupSlot slots[MAX_LOOKING_FOR_GROUP_SLOT];
- LookingForGroupSlot more;
- std::string comment;
- uint8 roles;
-};
-
enum PlayerMovementType
{
MOVE_ROOT = 1,