TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Arena.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License as published by the
6  * Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef TRINITY_ARENA_H
19 #define TRINITY_ARENA_H
20 
21 #include "Battleground.h"
22 
24 {
29 
30  SPELL_LAST_MAN_STANDING = 26549 // Achievement Credit
31 };
32 
34 {
37 };
38 
40 {
41  protected:
42  Arena();
43 
44  void AddPlayer(Player* player) override;
45  void RemovePlayer(Player* /*player*/, ObjectGuid /*guid*/, uint32 /*team*/) override;
46 
48  void UpdateArenaWorldState();
49 
50  void HandleKillPlayer(Player* player, Player* killer) override;
51 
52  private:
53  void RemovePlayerAtLeave(ObjectGuid guid, bool transport, bool sendPacket) override;
54  void CheckWinConditions() override;
55  void EndBattleground(uint32 winner) override;
56 };
57 
58 #endif // TRINITY_ARENA_H
virtual void HandleKillPlayer(Player *player, Player *killer)
Definition: Battleground.cpp:1784
virtual void RemovePlayer(Player *, ObjectGuid, uint32)
Definition: Battleground.h:545
Definition: Arena.h:30
Definition: Arena.h:27
Definition: Arena.h:25
Definition: Arena.h:28
ArenaSpellIds
Definition: Arena.h:23
virtual void CheckWinConditions()
Definition: Battleground.h:410
virtual void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &)
Definition: Battleground.h:367
Definition: Arena.h:39
uint32_t uint32
Definition: Define.h:150
Definition: WorldStatePackets.h:27
#define TC_GAME_API
Definition: Define.h:134
virtual void AddPlayer(Player *player)
Definition: Battleground.cpp:1079
Definition: Arena.h:26
Definition: Battleground.h:235
Definition: ObjectGuid.h:189
virtual void EndBattleground(uint32 winner)
Definition: Battleground.cpp:744
virtual void RemovePlayerAtLeave(ObjectGuid guid, bool Transport, bool SendPacket)
Definition: Battleground.cpp:919
ArenaWorldStates
Definition: Arena.h:33