aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Player.h')
-rw-r--r--src/game/Player.h29
1 files changed, 24 insertions, 5 deletions
diff --git a/src/game/Player.h b/src/game/Player.h
index 33693842154..522ae47d37b 100644
--- a/src/game/Player.h
+++ b/src/game/Player.h
@@ -148,6 +148,7 @@ struct ActionButton
enum ActionButtonType
{
ACTION_BUTTON_SPELL = 0,
+ ACTION_BUTTON_EQSET = 32,
ACTION_BUTTON_MACRO = 64,
ACTION_BUTTON_CMACRO= 65,
ACTION_BUTTON_ITEM = 128
@@ -289,14 +290,32 @@ 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
+};
+
+enum LfgRoles
+{
+ LEADER = 1,
+ TANK = 2,
+ HEALER = 4,
+ DAMAGE = 8
+};
+
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 == 1 || type == 5); }
+ 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;
@@ -307,11 +326,11 @@ struct LookingForGroupSlot
struct LookingForGroup
{
LookingForGroup() {}
- bool HaveInSlot(LookingForGroupSlot const& slot) const { return HaveInSlot(slot.entry,slot.type); }
+ bool HaveInSlot(LookingForGroupSlot const& slot) const { return HaveInSlot(slot.entry, slot.type); }
bool HaveInSlot(uint32 _entry, uint32 _type) const
{
for(int i = 0; i < MAX_LOOKING_FOR_GROUP_SLOT; ++i)
- if(slots[i].Is(_entry,_type))
+ if(slots[i].Is(_entry, _type))
return true;
return false;
}
@@ -1363,7 +1382,7 @@ class TRINITY_DLL_SPEC Player : public Unit
uint32 GetGlyph(uint8 slot) { return GetUInt32Value(PLAYER_FIELD_GLYPHS_1 + slot); }
uint32 GetFreePrimaryProffesionPoints() const { return GetUInt32Value(PLAYER_CHARACTER_POINTS2); }
- void SetFreePrimaryProffesions(uint16 profs) { SetUInt32Value(PLAYER_CHARACTER_POINTS2,profs); }
+ void SetFreePrimaryProffesions(uint16 profs) { SetUInt32Value(PLAYER_CHARACTER_POINTS2, profs); }
void InitPrimaryProffesions();
PlayerSpellMap const& GetSpellMap() const { return m_spells; }