root/trunk/src/game/BattleGroundBE.h @ 248

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 __BATTLEGROUNDBE_H
21#define __BATTLEGROUNDBE_H
22
23class BattleGround;
24
25enum BattleGroundBEObjectTypes
26{
27    BG_BE_OBJECT_DOOR_1         = 0,
28    BG_BE_OBJECT_DOOR_2         = 1,
29    BG_BE_OBJECT_DOOR_3         = 2,
30    BG_BE_OBJECT_DOOR_4         = 3,
31    BG_BE_OBJECT_BUFF_1         = 4,
32    BG_BE_OBJECT_BUFF_2         = 5,
33    BG_BE_OBJECT_MAX            = 6
34};
35
36enum BattleGroundBEObjects
37{
38    BG_BE_OBJECT_TYPE_DOOR_1    = 183971,
39    BG_BE_OBJECT_TYPE_DOOR_2    = 183973,
40    BG_BE_OBJECT_TYPE_DOOR_3    = 183970,
41    BG_BE_OBJECT_TYPE_DOOR_4    = 183972,
42    BG_BE_OBJECT_TYPE_BUFF_1    = 184663,
43    BG_BE_OBJECT_TYPE_BUFF_2    = 184664
44};
45
46class BattleGroundBEScore : public BattleGroundScore
47{
48    public:
49        BattleGroundBEScore() {};
50        virtual ~BattleGroundBEScore() {};
51};
52
53class BattleGroundBE : public BattleGround
54{
55    friend class BattleGroundMgr;
56
57    public:
58        BattleGroundBE();
59        ~BattleGroundBE();
60        void Update(time_t diff);
61
62        /* inherited from BattlegroundClass */
63        virtual void AddPlayer(Player *plr);
64
65        void RemovePlayer(Player *plr, uint64 guid);
66        void HandleAreaTrigger(Player *Source, uint32 Trigger);
67        bool SetupBattleGround();
68        void ResetBGSubclass();
69        virtual void FillInitialWorldStates(WorldPacket &d);
70        void HandleKillPlayer(Player* player, Player *killer);
71        bool HandlePlayerUnderMap(Player * plr);
72
73        /* Scorekeeping */
74        void UpdatePlayerScore(Player *Source, uint32 type, uint32 value);
75};
76#endif
Note: See TracBrowser for help on using the browser.