2010-10-07 15:54:07 +02:00
|
|
|
/*
|
2011-01-01 15:01:13 +01:00
|
|
|
* Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/>
|
2010-10-07 15:54:07 +02:00
|
|
|
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your
|
|
|
|
|
* option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
|
* more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
2008-10-02 16:23:55 -05:00
|
|
|
*/
|
|
|
|
|
#ifndef __BATTLEGROUNDAA_H
|
|
|
|
|
#define __BATTLEGROUNDAA_H
|
2009-10-17 15:51:44 -07:00
|
|
|
|
2010-08-08 04:37:24 +02:00
|
|
|
class Battleground;
|
2009-10-17 15:51:44 -07:00
|
|
|
|
2010-08-08 04:37:24 +02:00
|
|
|
class BattlegroundAAScore : public BattlegroundScore
|
2008-10-02 16:23:55 -05:00
|
|
|
{
|
|
|
|
|
public:
|
2010-08-08 04:37:24 +02:00
|
|
|
BattlegroundAAScore() {};
|
|
|
|
|
virtual ~BattlegroundAAScore() {};
|
2008-10-02 16:23:55 -05:00
|
|
|
//TODO fix me
|
|
|
|
|
};
|
2009-10-17 15:51:44 -07:00
|
|
|
|
2010-08-08 04:37:24 +02:00
|
|
|
class BattlegroundAA : public Battleground
|
2008-10-02 16:23:55 -05:00
|
|
|
{
|
2010-08-08 04:37:24 +02:00
|
|
|
friend class BattlegroundMgr;
|
2009-10-17 15:51:44 -07:00
|
|
|
|
2008-10-02 16:23:55 -05:00
|
|
|
public:
|
2010-08-08 04:37:24 +02:00
|
|
|
BattlegroundAA();
|
|
|
|
|
~BattlegroundAA();
|
2009-01-21 16:18:57 -06:00
|
|
|
void Update(uint32 diff);
|
2009-10-17 15:51:44 -07:00
|
|
|
|
2008-10-02 16:23:55 -05:00
|
|
|
/* inherited from BattlegroundClass */
|
|
|
|
|
virtual void AddPlayer(Player *plr);
|
2009-03-07 12:05:30 -06:00
|
|
|
virtual void StartingEventCloseDoors();
|
|
|
|
|
virtual void StartingEventOpenDoors();
|
2009-10-17 15:51:44 -07:00
|
|
|
|
2008-10-02 16:23:55 -05:00
|
|
|
void RemovePlayer(Player *plr, uint64 guid);
|
|
|
|
|
void HandleAreaTrigger(Player *Source, uint32 Trigger);
|
2010-08-08 04:37:24 +02:00
|
|
|
bool SetupBattleground();
|
2008-10-02 16:23:55 -05:00
|
|
|
void HandleKillPlayer(Player* player, Player *killer);
|
|
|
|
|
};
|
|
|
|
|
#endif
|