50#define OTHER_TEAM(a) (a == TEAM_ALLIANCE ? TEAM_HORDE : TEAM_ALLIANCE)
73 class InitWorldStates;
103 virtual bool HandlePlayerEnter(
Player* player);
104 virtual void HandlePlayerLeave(
Player* player);
107 bool IsInsideObjective(
Player* player)
const;
114 virtual bool Update(
uint32 diff);
120 virtual void SendChangePhase();
126 virtual bool HandleDropFlag(
Player* player,
uint32 spellId);
128 virtual void DeleteSpawns();
144 bool DelObject(
uint32 type);
145 bool DelCreature(
uint32 type);
147 bool DelCapturePoint();
207 virtual bool HandleAreaTrigger(
Player* player,
uint32 trigger);
218 void OnGameObjectCreate(
GameObject* go)
override;
219 void OnGameObjectRemove(
GameObject* go)
override;
220 void OnCreatureCreate(
Creature*)
override;
221 void OnCreatureRemove(
Creature*)
override;
227 virtual bool Update(
uint32 diff);
230 virtual void HandleKill(
Player* killer,
Unit* killed);
234 bool IsInsideObjective(
Player* player)
const;
241 virtual bool HandleDropFlag(
Player* player,
uint32 spellId);
282 virtual void HandlePlayerEnterZone(
Player* player,
uint32 zone);
283 virtual void HandlePlayerLeaveZone(
Player* player,
uint32 zone);
285 virtual void HandlePlayerResurrects(
Player* player,
uint32 zone);
294 OutdoorPvP::OPvPCapturePointMap::const_iterator itr = m_capturePoints.find(guid);
295 if (itr != m_capturePoints.end())
300 void RegisterZone(
uint32 zoneid);
302 bool HasPlayer(
Player const* player)
const;
306 template<
class Worker>
307 void BroadcastWorker(Worker& _worker,
uint32 zoneId);
310 void SetMapFromZone(
uint32 zone);
std::set< ObjectGuid > GuidSet
@ OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE
@ OBJECTIVESTATE_ALLIANCE
@ OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE
@ OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE
@ OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE
std::map< uint32, ObjectGuid::LowType > m_Creatures
virtual void ChangeState()=0
ObjectiveStates m_OldState
std::map< ObjectGuid::LowType, uint32 > m_ObjectTypes
std::map< ObjectGuid::LowType, uint32 > m_CreatureTypes
std::map< uint32, ObjectGuid::LowType > m_Objects
virtual void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &)
virtual ~OPvPCapturePoint()
GameObject * m_capturePoint
ObjectGuid::LowType m_capturePointSpawnId
virtual void ChangeTeam(TeamId)
OPvPCapturePointMap m_capturePoints
std::map< ObjectGuid::LowType, OPvPCapturePoint * > OPvPCapturePointMap
std::pair< ObjectGuid::LowType, Creature * > CreatureScriptPair
virtual void SendRemoveWorldStates(Player *)
static TeamId GetTeamIdByTeam(uint32 team)
OPvPCapturePoint * GetCapturePoint(ObjectGuid::LowType guid) const
virtual void FillInitialWorldStates(WorldPackets::WorldState::InitWorldStates &)
virtual bool SetupOutdoorPvP()
std::map< ObjectGuid::LowType, Creature * > m_CreatureScriptStore
virtual void AwardKillBonus(Player *)
virtual void HandleKillImpl(Player *, Unit *)
std::pair< ObjectGuid::LowType, GameObject * > GoScriptPair
std::map< ObjectGuid::LowType, GameObject * > m_GoScriptStore
void AddCapturePoint(OPvPCapturePoint *cp)