You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// positive values are indexes in BattlemasterList.dbc
276
-
BG_GROUP_JOIN_STATUS_BATTLEGROUND_FAIL = 0, // Your group has joined a battleground queue, but you are not eligible (showed for non existing BattlemasterList.dbc indexes)
277
-
BG_GROUP_JOIN_STATUS_NOT_ELIGIBLE = -1, // not show anything
278
-
BG_GROUP_JOIN_STATUS_DESERTERS = -2, // You cannot join the battleground yet because you or one of your party members is flagged as a Deserter.
279
-
BG_GROUP_JOIN_STATUS_NOT_IN_TEAM = -3, // Incorrect party size for this arena.
280
-
BG_GROUP_JOIN_STATUS_TOO_MANY_QUEUES = -4, // You can only be queued for 2 battles at once
281
-
BG_GROUP_JOIN_STATUS_CANNOT_QUEUE_FOR_RATED = -5, // You cannot queue for a rated match while queued for other battles
282
-
BG_GROUP_JOIN_STATUS_QUEUED_FOR_RATED = -6, // You cannot queue for another battle while queued for a rated arena match
283
-
BG_GROUP_JOIN_STATUS_TEAM_LEFT_QUEUE = -7, // Your team has left the arena queue
284
-
BG_GROUP_JOIN_STATUS_NOT_IN_BATTLEGROUND = -8, // You can't do that in a battleground.
285
-
BG_GROUP_JOIN_STATUS_XP_GAIN = -9, // wtf, doesn't exist in client...
286
-
BG_GROUP_JOIN_STATUS_JOIN_RANGE_INDEX = -10, // Cannot join the queue unless all members of your party are in the same battleground level range.
287
-
BG_GROUP_JOIN_STATUS_JOIN_TIMED_OUT = -11, // %s was unavailable to join the queue. (uint64 guid exist in client cache)
288
-
BG_GROUP_JOIN_STATUS_JOIN_FAILED = -12, // Join as a group failed (uint64 guid doesn't exist in client cache)
289
-
BG_GROUP_JOIN_STATUS_LFG_CANT_USE_BATTLEGROUND = -13, // You cannot queue for a battleground or arena while using the dungeon system.
290
-
BG_GROUP_JOIN_STATUS_IN_RANDOM_BG = -14, // Can't do that while in a Random Battleground queue.
291
-
BG_GROUP_JOIN_STATUS_IN_NON_RANDOM_BG = -15, // Can't queue for Random Battleground while in another Battleground queue.
292
-
};
293
-
294
273
/*
295
274
This class is used to keep the battleground score for each individual player
Copy file name to clipboardExpand all lines: src/game/BattleGround/BattleGroundDefines.h
+41-8Lines changed: 41 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -16,11 +16,45 @@
16
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
17
*/
18
18
19
-
#ifndefMANGOSSERVER_BATTLEGROUND_DEFINES_H
20
-
#defineMANGOSSERVER_BATTLEGROUND_DEFINES_H
19
+
#ifndef_BG_DEFINES_H
20
+
#define_BG_DEFINES_H
21
21
22
22
#include"Common.h"
23
23
24
+
#defineBATTLEGROUND_ARENA_POINT_DISTRIBUTION_DAY 86400 // seconds in a day
25
+
#defineCOUNT_OF_PLAYERS_TO_AVERAGE_WAIT_TIME 10
26
+
27
+
enumBattleGroundQueueGroupTypes
28
+
{
29
+
BG_QUEUE_PREMADE_ALLIANCE=0,
30
+
BG_QUEUE_PREMADE_HORDE=1,
31
+
BG_QUEUE_NORMAL_ALLIANCE=2,
32
+
BG_QUEUE_NORMAL_HORDE=3
33
+
};
34
+
35
+
#defineBG_QUEUE_GROUP_TYPES_COUNT 4
36
+
37
+
enumBattleGroundGroupJoinStatus
38
+
{
39
+
// positive values are indexes in BattlemasterList.dbc
40
+
BG_GROUP_JOIN_STATUS_BATTLEGROUND_FAIL=0, // Your group has joined a battleground queue, but you are not eligible (showed for non existing BattlemasterList.dbc indexes)
41
+
BG_GROUP_JOIN_STATUS_NOT_ELIGIBLE=-1, // not show anything
42
+
BG_GROUP_JOIN_STATUS_DESERTERS=-2, // You cannot join the battleground yet because you or one of your party members is flagged as a Deserter.
43
+
BG_GROUP_JOIN_STATUS_NOT_IN_TEAM=-3, // Incorrect party size for this arena.
44
+
BG_GROUP_JOIN_STATUS_TOO_MANY_QUEUES=-4, // You can only be queued for 2 battles at once
45
+
BG_GROUP_JOIN_STATUS_CANNOT_QUEUE_FOR_RATED=-5, // You cannot queue for a rated match while queued for other battles
46
+
BG_GROUP_JOIN_STATUS_QUEUED_FOR_RATED=-6, // You cannot queue for another battle while queued for a rated arena match
47
+
BG_GROUP_JOIN_STATUS_TEAM_LEFT_QUEUE=-7, // Your team has left the arena queue
48
+
BG_GROUP_JOIN_STATUS_NOT_IN_BATTLEGROUND=-8, // You can't do that in a battleground.
49
+
BG_GROUP_JOIN_STATUS_XP_GAIN=-9, // wtf, doesn't exist in client...
50
+
BG_GROUP_JOIN_STATUS_JOIN_RANGE_INDEX=-10, // Cannot join the queue unless all members of your party are in the same battleground level range.
51
+
BG_GROUP_JOIN_STATUS_JOIN_TIMED_OUT=-11, // %s was unavailable to join the queue. (uint64 guid exist in client cache)
52
+
BG_GROUP_JOIN_STATUS_JOIN_FAILED=-12, // Join as a group failed (uint64 guid doesn't exist in client cache)
53
+
BG_GROUP_JOIN_STATUS_LFG_CANT_USE_BATTLEGROUND=-13, // You cannot queue for a battleground or arena while using the dungeon system.
54
+
BG_GROUP_JOIN_STATUS_IN_RANDOM_BG=-14, // Can't do that while in a Random Battleground queue.
55
+
BG_GROUP_JOIN_STATUS_IN_NON_RANDOM_BG=-15, // Can't queue for Random Battleground while in another Battleground queue.
56
+
};
57
+
24
58
// indexes of BattlemasterList.dbc
25
59
enumBattleGroundTypeId
26
60
{
@@ -43,13 +77,12 @@ enum BattleGroundTypeId
43
77
44
78
enumArenaType
45
79
{
46
-
ARENA_TYPE_NONE=0, // used for mark non-arenas or problematic cases
47
-
ARENA_TYPE_2v2=2,
48
-
ARENA_TYPE_3v3=3,
49
-
ARENA_TYPE_5v5=5
80
+
ARENA_TYPE_NONE=0, // used for mark non-arenas or problematic cases
0 commit comments