TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
OutdoorPvPSI.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
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_SI_
19 #define OUTDOOR_PVP_SI_
20 
21 #include "OutdoorPvP.h"
22 
24 {
29 };
30 
32 
34 
36 
37 const uint32 SI_AREATRIGGER_H = 4168;
38 
39 const uint32 SI_AREATRIGGER_A = 4162;
40 
42 
44 
45 const uint32 SI_SILITHYST_MOUND = 181597;
46 
48 {
49  SI_GATHERED_A = 2313,
50  SI_GATHERED_H = 2314,
52 };
53 
54 class OutdoorPvPSI : public OutdoorPvP
55 {
56  public:
57  OutdoorPvPSI();
58 
59  bool SetupOutdoorPvP() override;
60 
61  void HandlePlayerEnterZone(Player* player, uint32 zone) override;
62  void HandlePlayerLeaveZone(Player* player, uint32 zone) override;
63 
64  bool Update(uint32 diff) override;
65 
67 
68  void SendRemoveWorldStates(Player* player) override;
69 
70  bool HandleAreaTrigger(Player* player, uint32 trigger, bool entered) override;
71 
72  bool HandleDropFlag(Player* player, uint32 spellId) override;
73 
74  bool HandleCustomSpell(Player* player, uint32 spellId, GameObject* go) override;
75 
76  void UpdateWorldState();
77 
78  private:
81 
83 };
84 
85 #endif
bool Update(uint32 diff) override
Definition: OutdoorPvPSI.cpp:68
Definition: OutdoorPvPSI.h:27
SI_WorldStates
Definition: OutdoorPvPSI.h:47
bool HandleCustomSpell(Player *player, uint32 spellId, GameObject *go) override
Definition: OutdoorPvPSI.cpp:222
const uint32 SI_MAX_RESOURCES
Definition: OutdoorPvPSI.h:31
const uint8 OutdoorPvPSIBuffZonesNum
Definition: OutdoorPvPSI.h:33
uint32 m_Gathered_A
Definition: OutdoorPvPSI.h:79
void UpdateWorldState()
Definition: OutdoorPvPSI.cpp:52
const uint32 SI_TURNIN_QUEST_CM_A
Definition: OutdoorPvPSI.h:41
const uint32 SI_AREATRIGGER_A
Definition: OutdoorPvPSI.h:39
void HandlePlayerEnterZone(Player *player, uint32 zone) override
Definition: OutdoorPvPSI.cpp:73
void HandlePlayerLeaveZone(Player *player, uint32 zone) override
Definition: OutdoorPvPSI.cpp:80
OutdoorPvPSISpells
Definition: OutdoorPvPSI.h:23
const uint32 OutdoorPvPSIBuffZones[OutdoorPvPSIBuffZonesNum]
Definition: OutdoorPvPSI.h:35
uint32_t uint32
Definition: Define.h:150
Definition: WorldStatePackets.h:27
Definition: GameObject.h:880
Definition: OutdoorPvPSI.h:26
bool HandleDropFlag(Player *player, uint32 spellId) override
Definition: OutdoorPvPSI.cpp:147
uint32 m_Gathered_H
Definition: OutdoorPvPSI.h:80
OutdoorPvPSI()
Definition: OutdoorPvPSI.cpp:30
void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &packet) override
Definition: OutdoorPvPSI.cpp:38
Definition: OutdoorPvPSI.h:54
Definition: OutdoorPvP.h:188
bool HandleAreaTrigger(Player *player, uint32 trigger, bool entered) override
Definition: OutdoorPvPSI.cpp:87
bool SetupOutdoorPvP() override
Definition: OutdoorPvPSI.cpp:59
const uint32 SI_SILITHYST_MOUND
Definition: OutdoorPvPSI.h:45
Definition: OutdoorPvPSI.h:50
Definition: OutdoorPvPSI.h:49
uint8_t uint8
Definition: Define.h:152
Definition: OutdoorPvPSI.h:51
uint32 m_LastController
Definition: OutdoorPvPSI.h:82
void SendRemoveWorldStates(Player *player) override
Definition: OutdoorPvPSI.cpp:45
const uint32 SI_AREATRIGGER_H
Definition: OutdoorPvPSI.h:37
const uint32 SI_TURNIN_QUEST_CM_H
Definition: OutdoorPvPSI.h:43
Definition: OutdoorPvPSI.h:28
Definition: OutdoorPvPSI.h:25