TrinityCore
Loading...
Searching...
No Matches
OutdoorPvPTF.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_TF_
19#define OUTDOOR_PVP_TF_
20
21#include "OutdoorPvP.h"
22
24{
25 TEXT_BONE_WASTES_TAKEN_ALLIANCE = 16120, // (NYI) '|cffffff00The Alliance has taken control of The Bone Wastes!|r'
26 TEXT_BONE_WASTES_TAKEN_HORDE = 16119, // (NYI) '|cffffff00The Horde has taken control of The Bone Wastes!|r'
27 TEXT_SPIRIT_TOWER_TAKEN_ALLIANCE = 18285, // '|cffffff00The Alliance has taken control of a Spirit Tower!|r'
28 TEXT_SPIRIT_TOWER_TAKEN_HORDE = 18286, // '|cffffff00The Horde has taken control of a Spirit Tower!|r'
29 TEXT_SPIRIT_TOWER_LOSE_ALLIANCE = 18288, // '|cffffff00The Alliance has lost control of a Spirit Tower!|r'
30 TEXT_SPIRIT_TOWER_LOSE_HORDE = 18287 // '|cffffff00The Horde has lost control of a Spirit Tower!|r'
31};
32
42
56
63
65{
66 public:
68
69 bool Update(uint32 diff) override;
70 void ChangeState() override;
72
73 void UpdateTowerState();
74
75 protected:
78};
79
106
107#endif
uint32_t uint32
Definition Define.h:133
DefenseMessages
TFWorldStates
@ TF_UI_LOCKED_TIME_MINUTES_FIRST_DIGIT
@ TF_UI_LOCKED_DISPLAY_ALLIANCE
@ TF_UI_LOCKED_TIME_MINUTES_SECOND_DIGIT
@ TF_UI_LOCKED_DISPLAY_NEUTRAL
@ TF_UI_LOCKED_DISPLAY_HORDE
@ TF_UI_TOWER_COUNT_H
@ TF_UI_TOWERS_CONTROLLED_DISPLAY
@ TF_UI_TOWER_COUNT_A
@ TF_UI_LOCKED_TIME_HOURS
TFTowerStates
@ TF_TOWERSTATE_H
@ TF_TOWERSTATE_N
@ TF_TOWERSTATE_A
OutdoorPvPTF_TowerType
@ TF_TOWER_SE
@ TF_TOWER_N
@ TF_TOWER_NE
@ TF_TOWER_NW
@ TF_TOWER_NUM
@ TF_TOWER_S
@ TEXT_SPIRIT_TOWER_LOSE_HORDE
@ TEXT_SPIRIT_TOWER_TAKEN_ALLIANCE
@ TEXT_SPIRIT_TOWER_TAKEN_HORDE
@ TEXT_BONE_WASTES_TAKEN_HORDE
@ TEXT_BONE_WASTES_TAKEN_ALLIANCE
@ TEXT_SPIRIT_TOWER_LOSE_ALLIANCE
bool Update(uint32 diff) override
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &packet) override
void ChangeState() override
OutdoorPvPTF_TowerType m_TowerType
void HandlePlayerEnterZone(Player *player, uint32 zone) override
void SendRemoveWorldStates(Player *player) override
void SetHordeTowersControlled(uint32 count)
uint32 GetHordeTowersControlled() const
uint32 GetAllianceTowersControlled() const
uint32 m_HordeTowersControlled
bool IsLocked() const
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &packet) override
uint32 m_AllianceTowersControlled
uint32 second_digit
uint32 m_LockTimer
void HandlePlayerLeaveZone(Player *player, uint32 zone) override
bool SetupOutdoorPvP() override
uint32 m_LockTimerUpdate
bool Update(uint32 diff) override
uint32 hours_left
uint32 first_digit
void SetAllianceTowersControlled(uint32 count)