root/trunk/src/game/OutdoorPvPSI.h @ 248

Revision 102, 2.2 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) 2008 Trinity <http://www.trinitycore.org/>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
19#ifndef OUTDOOR_PVP_SI_
20#define OUTDOOR_PVP_SI_
21
22#include "OutdoorPvP.h"
23
24const uint32 SI_SILITHYST_FLAG_GO_SPELL = 29518;
25
26const uint32 SI_SILITHYST_FLAG = 29519;
27
28const uint32 SI_TRACES_OF_SILITHYST = 29534;
29
30const uint32 SI_CENARION_FAVOR = 30754;
31
32const uint32 SI_MAX_RESOURCES = 200;
33
34const uint32 OutdoorPvPSIBuffZonesNum = 3;
35
36const uint32 OutdoorPvPSIBuffZones[OutdoorPvPSIBuffZonesNum] = { 1377, 3428, 3429 };
37
38const uint32 SI_AREATRIGGER_H = 4168;
39
40const uint32 SI_AREATRIGGER_A = 4162;
41
42const uint32 SI_TURNIN_QUEST_CM_A = 17090;
43
44const uint32 SI_TURNIN_QUEST_CM_H = 18199;
45
46const uint32 SI_SILITHYST_MOUND = 181597;
47
48enum SI_WorldStates{
49    SI_GATHERED_A = 2313,
50    SI_GATHERED_H = 2314,
51    SI_SILITHYST_MAX = 2317
52};
53
54class OutdoorPvPSI : public OutdoorPvP
55{
56public:
57    OutdoorPvPSI();
58    bool SetupOutdoorPvP();
59    void HandlePlayerEnterZone(Player *plr, uint32 zone);
60    void HandlePlayerLeaveZone(Player *plr, uint32 zone);
61    bool Update(uint32 diff);
62    void FillInitialWorldStates(WorldPacket &data);
63    void SendRemoveWorldStates(Player * plr);
64    bool HandleAreaTrigger(Player * plr, uint32 trigger);
65    bool HandleDropFlag(Player * plr, uint32 spellId);
66    bool HandleCustomSpell(Player * plr, uint32 spellId, GameObject *go);
67    void BuffTeam(uint32 team);
68    void UpdateWorldState();
69private:
70    uint32 m_Gathered_A;
71    uint32 m_Gathered_H;
72    uint32 m_LastController;
73};
74
75#endif
Note: See TracBrowser for help on using the browser.