-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BattleGround: Wave 1 of safeguards against race conditions
BattleGround handler and BattleGround class still need to be massively reworked but this makes it a little bette
- Loading branch information
1 parent
0924070
commit 618cfc7
Showing
20 changed files
with
239 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* This file is part of the CMaNGOS Project. See AUTHORS file for Copyright information | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
*/ | ||
|
||
#ifndef MANGOSSERVER_BATTLEGROUND_DEFINES_H | ||
#define MANGOSSERVER_BATTLEGROUND_DEFINES_H | ||
|
||
#include "Common.h" | ||
|
||
// indexes of BattlemasterList.dbc | ||
enum BattleGroundTypeId | ||
{ | ||
BATTLEGROUND_TYPE_NONE = 0, | ||
BATTLEGROUND_AV = 1, | ||
BATTLEGROUND_WS = 2, | ||
BATTLEGROUND_AB = 3, | ||
BATTLEGROUND_NA = 4, | ||
BATTLEGROUND_BE = 5, | ||
BATTLEGROUND_AA = 6, // all arenas | ||
BATTLEGROUND_EY = 7, | ||
BATTLEGROUND_RL = 8, | ||
BATTLEGROUND_SA = 9, | ||
BATTLEGROUND_DS = 10, | ||
BATTLEGROUND_RV = 11, | ||
BATTLEGROUND_IC = 30, | ||
BATTLEGROUND_RB = 32 // random battleground | ||
}; | ||
#define MAX_BATTLEGROUND_TYPE_ID 33 | ||
|
||
enum ArenaType | ||
{ | ||
ARENA_TYPE_NONE = 0, // used for mark non-arenas or problematic cases | ||
ARENA_TYPE_2v2 = 2, | ||
ARENA_TYPE_3v3 = 3, | ||
ARENA_TYPE_5v5 = 5 | ||
}; | ||
|
||
inline bool IsArenaTypeValid(ArenaType type) { return type == ARENA_TYPE_2v2 || type == ARENA_TYPE_3v3 || type == ARENA_TYPE_5v5; } | ||
|
||
#endif // MANGOSSERVER_BATTLEGROUND_DEFINES_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.