root/trunk/src/game/BattleGroundNA.h @ 242

Revision 102, 2.3 kB (checked in by yumileroy, 17 years ago)

[svn] Fixed copyright notices to comply with GPL.

Original author: w12x
Date: 2008-10-23 03:29:52-05:00

Line 
1/*
2 * Copyright (C) 2005-2008 MaNGOS <http://www.mangosproject.org/>
3 *
4 * Copyright (C) 2008 Trinity <http://www.trinitycore.org/>
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
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
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
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20#ifndef __BATTLEGROUNDNA_H
21#define __BATTLEGROUNDNA_H
22
23class BattleGround;
24
25enum 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,
31    BG_NA_OBJECT_BUFF_1         = 4,
32    BG_NA_OBJECT_BUFF_2         = 5,
33    BG_NA_OBJECT_MAX            = 6
34};
35
36enum 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,
41    BG_NA_OBJECT_TYPE_DOOR_4    = 183979,
42    BG_NA_OBJECT_TYPE_BUFF_1    = 184663,
43    BG_NA_OBJECT_TYPE_BUFF_2    = 184664
44};
45
46class BattleGroundNAScore : public BattleGroundScore
47{
48    public:
49        BattleGroundNAScore() {};
50        virtual ~BattleGroundNAScore() {};
51        //TODO fix me
52};
53
54class 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();
70        virtual void FillInitialWorldStates(WorldPacket &d);
71        void HandleKillPlayer(Player* player, Player *killer);
72        bool HandlePlayerUnderMap(Player * plr);
73};
74#endif
Note: See TracBrowser for help on using the browser.