TrinityCore
Loading...
Searching...
No Matches
OutdoorPvPHP.h
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef OUTDOOR_PVP_HP_
19#define OUTDOOR_PVP_HP_
20
21#include "OutdoorPvP.h"
22
24{
25 TEXT_OVERLOOK_TAKEN_ALLIANCE = 14841, // '|cffffff00The Overlook has been taken by the Alliance!|r'
26 TEXT_OVERLOOK_TAKEN_HORDE = 14842, // '|cffffff00The Overlook has been taken by the Horde!|r'
27 TEXT_STADIUM_TAKEN_ALLIANCE = 14843, // '|cffffff00The Stadium has been taken by the Alliance!|r'
28 TEXT_STADIUM_TAKEN_HORDE = 14844, // '|cffffff00The Stadium has been taken by the Horde!|r'
29 TEXT_BROKEN_HILL_TAKEN_ALLIANCE = 14845, // '|cffffff00Broken Hill has been taken by the Alliance!|r'
30 TEXT_BROKEN_HILL_TAKEN_HORDE = 14846, // '|cffffff00Broken Hill has been taken by the Horde!|r'
31};
32
40
48
57
69
71{
72 public:
74
75 bool SetupOutdoorPvP() override;
76
77 void HandlePlayerEnterZone(Player* player, uint32 zone) override;
78 void HandlePlayerLeaveZone(Player* player, uint32 zone) override;
79
80 bool Update(uint32 diff) override;
82 void SendRemoveWorldStates(Player* player) override;
83 void HandleKillImpl(Player* player, Unit* killed) override;
84
89
90 private:
91 uint32 m_AllianceTowersControlled; // how many towers are controlled
93};
94
95#endif
uint32_t uint32
Definition Define.h:133
DefenseMessages
OutdoorPvPHPSpells
@ AllianceBuff
@ HordePlayerKillReward
@ HordeBuff
@ AlliancePlayerKillReward
OutdoorPvPHPWorldStates
@ HP_UI_TOWER_COUNT_A
@ HP_UI_TOWER_DISPLAY_A
@ HP_UI_TOWER_DISPLAY_H
@ HP_UI_TOWER_COUNT_H
@ TEXT_OVERLOOK_TAKEN_ALLIANCE
@ TEXT_BROKEN_HILL_TAKEN_HORDE
@ TEXT_STADIUM_TAKEN_ALLIANCE
@ TEXT_STADIUM_TAKEN_HORDE
@ TEXT_OVERLOOK_TAKEN_HORDE
@ TEXT_BROKEN_HILL_TAKEN_ALLIANCE
OutdoorPvPHPTowerType
@ HP_TOWER_STADIUM
@ HP_TOWER_NUM
@ HP_TOWER_OVERLOOK
@ HP_TOWER_BROKEN_HILL
OutdoorPvPHPTowerType m_TowerType
void ChangeState() override
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &packet) override
void HandlePlayerEnterZone(Player *player, uint32 zone) override
void SetAllianceTowersControlled(uint32 count)
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &packet) override
uint32 m_AllianceTowersControlled
uint32 GetHordeTowersControlled() const
void HandleKillImpl(Player *player, Unit *killed) override
void HandlePlayerLeaveZone(Player *player, uint32 zone) override
void SendRemoveWorldStates(Player *player) override
uint32 m_HordeTowersControlled
void SetHordeTowersControlled(uint32 count)
uint32 GetAllianceTowersControlled() const
bool SetupOutdoorPvP() override
bool Update(uint32 diff) override
Definition Unit.h:769