Updated Copyright year to 2013
[getmangos.git] / src / game / OutdoorPvP / OutdoorPvPSI.h
blobe0736b261cc27a7127d392d94e31dbd6dc95599b
1 /*
2 * Copyright (C) 2005-2013 MaNGOS <http://getmangos.com/>
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.
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.
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
19 #ifndef WORLD_PVP_SI
20 #define WORLD_PVP_SI
22 #include "Common.h"
23 #include "OutdoorPvP.h"
24 #include "Language.h"
26 enum
28 // npcs
29 NPC_SILITHUS_DUST_QUEST_ALLIANCE = 17090, // dummy npcs for quest credit
30 NPC_SILITHUS_DUST_QUEST_HORDE = 18199,
32 // game objects
33 GO_SILITHYST_MOUND = 181597, // created when a player drops the flag
34 GO_SILITHYST_GEYSER = 181598, // spawn on the map by default
36 // spells
37 //SPELL_SILITHYST_OBJECT = 29518, // unknown, related to the GO
38 SPELL_SILITHYST = 29519, // buff received when you are carrying a silithyst
39 SPELL_TRACES_OF_SILITHYST = 29534, // individual buff received when successfully delivered a silithyst
40 SPELL_CENARION_FAVOR = 30754, // zone buff received when a team gathers 200 silithyst
41 SPELL_SILITHYST_FLAG_DROP = 29533, // drop the flag
43 // quests
44 QUEST_SCOURING_DESERT_ALLIANCE = 9419,
45 QUEST_SCOURING_DESERT_HORDE = 9422,
47 // area triggers
48 AREATRIGGER_SILITHUS_ALLIANCE = 4162,
49 AREATRIGGER_SILITHUS_HORDE = 4168,
51 // misc
52 FACTION_CENARION_CIRCLE = 609,
53 HONOR_REWARD_SILITHYST = 19,
54 REPUTATION_REWARD_SILITHYST = 20,
55 MAX_SILITHYST = 200,
57 // world states
58 WORLD_STATE_SI_GATHERED_A = 2313,
59 WORLD_STATE_SI_GATHERED_H = 2314,
60 WORLD_STATE_SI_SILITHYST_MAX = 2317
63 class OutdoorPvPSI : public OutdoorPvP
65 public:
66 OutdoorPvPSI();
68 void HandlePlayerEnterZone(Player* player, bool isMainZone) override;
69 void HandlePlayerLeaveZone(Player* player, bool isMainZone) override;
70 void FillInitialWorldStates(WorldPacket& data, uint32& count) override;
72 bool HandleAreaTrigger(Player* player, uint32 triggerId) override;
73 bool HandleGameObjectUse(Player* player, GameObject* go) override;
74 bool HandleDropFlag(Player* player, uint32 spellId) override;
76 private:
77 uint8 m_resourcesAlliance;
78 uint8 m_resourcesHorde;
79 Team m_zoneOwner;
82 #endif