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();
128 virtual void DeleteSpawns();
144 bool DelObject(
uint32 type);
145 bool DelCreature(
uint32 type);
147 bool DelCapturePoint();
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);
280 void BroadcastPacket(
WorldPacket const* data)
const;
282 virtual void HandlePlayerEnterZone(
Player* player,
uint32 zone);
283 virtual void HandlePlayerLeaveZone(
Player* player,
uint32 zone);
285 virtual void HandlePlayerResurrects(
Player* player,
uint32 zone);
291 void RegisterZone(
uint32 zoneid);
293 bool HasPlayer(
Player const* player)
const;
297 template<
class Worker>
298 void BroadcastWorker(Worker& _worker,
uint32 zoneId);
301 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
virtual bool HandleDropFlag(Player *, uint32)
ObjectGuid::LowType m_capturePointSpawnId
virtual bool HandleGossipOption(Player *, Creature *, uint32)
virtual void ChangeTeam(TeamId)
virtual bool CanTalkTo(Player *, Creature *, GossipMenuItems const &)
OPvPCapturePointMap m_capturePoints
virtual bool HandleAreaTrigger(Player *, uint32)
std::map< ObjectGuid::LowType, OPvPCapturePoint * > OPvPCapturePointMap
std::pair< ObjectGuid::LowType, Creature * > CreatureScriptPair
virtual void SendRemoveWorldStates(Player *)
static TeamId GetTeamIdByTeam(uint32 team)
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