root/trunk/src/game/BattleGroundRL.h @ 240

Revision 102, 2.1 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 __BATTLEGROUNDRL_H
21#define __BATTLEGROUNDRL_H
22
23class BattleGround;
24
25enum BattleGroundRLObjectTypes
26{
27    BG_RL_OBJECT_DOOR_1         = 0,
28    BG_RL_OBJECT_DOOR_2         = 1,
29    BG_RL_OBJECT_BUFF_1         = 2,
30    BG_RL_OBJECT_BUFF_2         = 3,
31    BG_RL_OBJECT_MAX            = 4
32};
33
34enum BattleGroundRLObjects
35{
36    BG_RL_OBJECT_TYPE_DOOR_1    = 185918,
37    BG_RL_OBJECT_TYPE_DOOR_2    = 185917,
38    BG_RL_OBJECT_TYPE_BUFF_1    = 184663,
39    BG_RL_OBJECT_TYPE_BUFF_2    = 184664
40};
41
42class BattleGroundRLScore : public BattleGroundScore
43{
44    public:
45        BattleGroundRLScore() {};
46        virtual ~BattleGroundRLScore() {};
47        //TODO fix me
48};
49
50class 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();
66        virtual void FillInitialWorldStates(WorldPacket &d);
67        void HandleKillPlayer(Player* player, Player *killer);
68        bool HandlePlayerUnderMap(Player * plr);
69};
70#endif
Note: See TracBrowser for help on using the browser.