[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 __BATTLEGROUNDNA_H |
---|
| 21 | #define __BATTLEGROUNDNA_H |
---|
| 22 | |
---|
| 23 | class BattleGround; |
---|
| 24 | |
---|
| 25 | enum BattleGroundNAObjectTypes |
---|
| 26 | { |
---|
| 27 | BG_NA_OBJECT_DOOR_1 = 0, |
---|
| 28 | BG_NA_OBJECT_DOOR_2 = 1, |
---|
| 29 | BG_NA_OBJECT_DOOR_3 = 2, |
---|
| 30 | BG_NA_OBJECT_DOOR_4 = 3, |
---|
[9] | 31 | BG_NA_OBJECT_BUFF_1 = 4, |
---|
| 32 | BG_NA_OBJECT_BUFF_2 = 5, |
---|
| 33 | BG_NA_OBJECT_MAX = 6 |
---|
[2] | 34 | }; |
---|
| 35 | |
---|
| 36 | enum BattleGroundNAObjects |
---|
| 37 | { |
---|
| 38 | BG_NA_OBJECT_TYPE_DOOR_1 = 183978, |
---|
| 39 | BG_NA_OBJECT_TYPE_DOOR_2 = 183980, |
---|
| 40 | BG_NA_OBJECT_TYPE_DOOR_3 = 183977, |
---|
[9] | 41 | BG_NA_OBJECT_TYPE_DOOR_4 = 183979, |
---|
| 42 | BG_NA_OBJECT_TYPE_BUFF_1 = 184663, |
---|
| 43 | BG_NA_OBJECT_TYPE_BUFF_2 = 184664 |
---|
[2] | 44 | }; |
---|
| 45 | |
---|
| 46 | class BattleGroundNAScore : public BattleGroundScore |
---|
| 47 | { |
---|
| 48 | public: |
---|
| 49 | BattleGroundNAScore() {}; |
---|
| 50 | virtual ~BattleGroundNAScore() {}; |
---|
| 51 | //TODO fix me |
---|
| 52 | }; |
---|
| 53 | |
---|
| 54 | class BattleGroundNA : public BattleGround |
---|
| 55 | { |
---|
| 56 | friend class BattleGroundMgr; |
---|
| 57 | |
---|
| 58 | public: |
---|
| 59 | BattleGroundNA(); |
---|
| 60 | ~BattleGroundNA(); |
---|
| 61 | void Update(time_t diff); |
---|
| 62 | |
---|
| 63 | /* inherited from BattlegroundClass */ |
---|
| 64 | virtual void AddPlayer(Player *plr); |
---|
| 65 | |
---|
| 66 | void RemovePlayer(Player *plr, uint64 guid); |
---|
| 67 | void HandleAreaTrigger(Player *Source, uint32 Trigger); |
---|
| 68 | bool SetupBattleGround(); |
---|
| 69 | virtual void ResetBGSubclass(); |
---|
[9] | 70 | virtual void FillInitialWorldStates(WorldPacket &d); |
---|
[2] | 71 | void HandleKillPlayer(Player* player, Player *killer); |
---|
[9] | 72 | bool HandlePlayerUnderMap(Player * plr); |
---|
[2] | 73 | }; |
---|
| 74 | #endif |
---|