[2] | 1 | /* |
---|
[102] | 2 | * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/> |
---|
| 3 | * |
---|
[44] | 4 | * Copyright (C) 2008 Trinity <http://www.trinitycore.org/> |
---|
[2] | 5 | * |
---|
| 6 | * This program is free software; you can redistribute it and/or modify |
---|
| 7 | * it under the terms of the GNU General Public License as published by |
---|
| 8 | * the Free Software Foundation; either version 2 of the License, or |
---|
| 9 | * (at your option) any later version. |
---|
| 10 | * |
---|
| 11 | * This program is distributed in the hope that it will be useful, |
---|
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
[44] | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
[2] | 14 | * GNU General Public License for more details. |
---|
| 15 | * |
---|
| 16 | * You should have received a copy of the GNU General Public License |
---|
| 17 | * along with this program; if not, write to the Free Software |
---|
[44] | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
---|
[2] | 19 | */ |
---|
| 20 | #ifndef __BATTLEGROUNDRL_H |
---|
| 21 | #define __BATTLEGROUNDRL_H |
---|
| 22 | |
---|
| 23 | class BattleGround; |
---|
| 24 | |
---|
| 25 | enum BattleGroundRLObjectTypes |
---|
| 26 | { |
---|
| 27 | BG_RL_OBJECT_DOOR_1 = 0, |
---|
| 28 | BG_RL_OBJECT_DOOR_2 = 1, |
---|
[9] | 29 | BG_RL_OBJECT_BUFF_1 = 2, |
---|
| 30 | BG_RL_OBJECT_BUFF_2 = 3, |
---|
| 31 | BG_RL_OBJECT_MAX = 4 |
---|
[2] | 32 | }; |
---|
| 33 | |
---|
| 34 | enum BattleGroundRLObjects |
---|
| 35 | { |
---|
| 36 | BG_RL_OBJECT_TYPE_DOOR_1 = 185918, |
---|
[9] | 37 | BG_RL_OBJECT_TYPE_DOOR_2 = 185917, |
---|
| 38 | BG_RL_OBJECT_TYPE_BUFF_1 = 184663, |
---|
| 39 | BG_RL_OBJECT_TYPE_BUFF_2 = 184664 |
---|
[2] | 40 | }; |
---|
| 41 | |
---|
| 42 | class BattleGroundRLScore : public BattleGroundScore |
---|
| 43 | { |
---|
| 44 | public: |
---|
| 45 | BattleGroundRLScore() {}; |
---|
| 46 | virtual ~BattleGroundRLScore() {}; |
---|
| 47 | //TODO fix me |
---|
| 48 | }; |
---|
| 49 | |
---|
| 50 | class BattleGroundRL : public BattleGround |
---|
| 51 | { |
---|
| 52 | friend class BattleGroundMgr; |
---|
| 53 | |
---|
| 54 | public: |
---|
| 55 | BattleGroundRL(); |
---|
| 56 | ~BattleGroundRL(); |
---|
| 57 | void Update(time_t diff); |
---|
| 58 | |
---|
| 59 | /* inherited from BattlegroundClass */ |
---|
| 60 | virtual void AddPlayer(Player *plr); |
---|
| 61 | |
---|
| 62 | void RemovePlayer(Player *plr, uint64 guid); |
---|
| 63 | void HandleAreaTrigger(Player *Source, uint32 Trigger); |
---|
| 64 | bool SetupBattleGround(); |
---|
| 65 | virtual void ResetBGSubclass(); |
---|
[9] | 66 | virtual void FillInitialWorldStates(WorldPacket &d); |
---|
[2] | 67 | void HandleKillPlayer(Player* player, Player *killer); |
---|
[9] | 68 | bool HandlePlayerUnderMap(Player * plr); |
---|
[2] | 69 | }; |
---|
| 70 | #endif |
---|