TrinityCore
Loading...
Searching...
No Matches
OutdoorPvPSI Class Reference

#include <OutdoorPvPSI.h>

+ Inheritance diagram for OutdoorPvPSI:

Public Member Functions

 OutdoorPvPSI ()
 
bool SetupOutdoorPvP () override
 
void HandlePlayerEnterZone (Player *player, uint32 zone) override
 
void HandlePlayerLeaveZone (Player *player, uint32 zone) override
 
bool Update (uint32 diff) override
 
void FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &packet) override
 
void SendRemoveWorldStates (Player *player) override
 
bool HandleAreaTrigger (Player *player, uint32 trigger) override
 
bool HandleDropFlag (Player *player, uint32 spellId) override
 
bool HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) override
 
void UpdateWorldState ()
 
- Public Member Functions inherited from OutdoorPvP
 OutdoorPvP ()
 
virtual ~OutdoorPvP ()
 
void DeleteSpawns ()
 
virtual bool HandleOpenGo (Player *player, GameObject *go)
 
void OnGameObjectCreate (GameObject *go) override
 
void OnGameObjectRemove (GameObject *go) override
 
void OnCreatureCreate (Creature *) override
 
void OnCreatureRemove (Creature *) override
 
void SendUpdateWorldState (uint32 field, uint32 value)
 
virtual void HandleKill (Player *killer, Unit *killed)
 
virtual void HandleKillImpl (Player *, Unit *)
 
bool IsInsideObjective (Player *player) const
 
virtual void AwardKillBonus (Player *)
 
uint32 GetTypeId () const
 
virtual bool HandleGossipOption (Player *player, Creature *creature, uint32 gossipid)
 
virtual bool CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso)
 
void TeamApplyBuff (TeamId team, uint32 spellId, uint32 spellId2=0)
 
void SendDefenseMessage (uint32 zoneId, uint32 id)
 
MapGetMap () const
 
- Public Member Functions inherited from ZoneScript
 ZoneScript ()
 
virtual ~ZoneScript ()
 
virtual uint32 GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data)
 
virtual uint32 GetGameObjectEntry (ObjectGuid::LowType, uint32 entry)
 
virtual void OnUnitDeath (Unit *)
 
virtual ObjectGuid GetGuidData (uint32) const
 
virtual void SetGuidData (uint32, ObjectGuid)
 
virtual uint64 GetData64 (uint32) const
 
virtual void SetData64 (uint32, uint64)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void ProcessEvent (WorldObject *, uint32)
 

Private Attributes

uint32 m_Gathered_A
 
uint32 m_Gathered_H
 
uint32 m_LastController
 

Additional Inherited Members

- Public Types inherited from OutdoorPvP
typedef std::map< ObjectGuid::LowType, OPvPCapturePoint * > OPvPCapturePointMap
 
typedef std::pair< ObjectGuid::LowType, GameObject * > GoScriptPair
 
typedef std::pair< ObjectGuid::LowType, Creature * > CreatureScriptPair
 
- Static Public Member Functions inherited from OutdoorPvP
static TeamId GetTeamIdByTeam (uint32 team)
 
- Protected Member Functions inherited from OutdoorPvP
void BroadcastPacket (WorldPacket &data) const
 
virtual void HandlePlayerResurrects (Player *player, uint32 zone)
 
void AddCapturePoint (OPvPCapturePoint *cp)
 
OPvPCapturePointGetCapturePoint (ObjectGuid::LowType guid) const
 
void RegisterZone (uint32 zoneid)
 
bool HasPlayer (Player const *player) const
 
void TeamCastSpell (TeamId team, int32 spellId)
 
template<class Worker >
void BroadcastWorker (Worker &_worker, uint32 zoneId)
 
void SetMapFromZone (uint32 zone)
 
- Protected Attributes inherited from OutdoorPvP
OPvPCapturePointMap m_capturePoints
 
GuidSet m_players [2]
 
uint32 m_TypeId
 
bool m_sendUpdate
 
std::map< ObjectGuid::LowType, GameObject * > m_GoScriptStore
 
std::map< ObjectGuid::LowType, Creature * > m_CreatureScriptStore
 
Mapm_map
 

Detailed Description

Definition at line 38 of file OutdoorPvPSI.h.

Constructor & Destructor Documentation

◆ OutdoorPvPSI()

OutdoorPvPSI::OutdoorPvPSI ( )

Definition at line 40 of file OutdoorPvPSI.cpp.

Member Function Documentation

◆ FillInitialWorldStates()

void OutdoorPvPSI::FillInitialWorldStates ( WorldPackets::WorldState::InitWorldStates packet)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 48 of file OutdoorPvPSI.cpp.

◆ HandleAreaTrigger()

bool OutdoorPvPSI::HandleAreaTrigger ( Player player,
uint32  trigger 
)
overridevirtual
Todo:
: confirm this text
Todo:
: confirm this text

Reimplemented from OutdoorPvP.

Definition at line 97 of file OutdoorPvPSI.cpp.

+ Here is the call graph for this function:

◆ HandleCustomSpell()

bool OutdoorPvPSI::HandleCustomSpell ( Player player,
uint32  spellId,
GameObject go 
)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 228 of file OutdoorPvPSI.cpp.

+ Here is the call graph for this function:

◆ HandleDropFlag()

bool OutdoorPvPSI::HandleDropFlag ( Player player,
uint32  spellId 
)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 157 of file OutdoorPvPSI.cpp.

+ Here is the call graph for this function:

◆ HandlePlayerEnterZone()

void OutdoorPvPSI::HandlePlayerEnterZone ( Player player,
uint32  zone 
)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 83 of file OutdoorPvPSI.cpp.

+ Here is the call graph for this function:

◆ HandlePlayerLeaveZone()

void OutdoorPvPSI::HandlePlayerLeaveZone ( Player player,
uint32  zone 
)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 90 of file OutdoorPvPSI.cpp.

+ Here is the call graph for this function:

◆ SendRemoveWorldStates()

void OutdoorPvPSI::SendRemoveWorldStates ( Player player)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 55 of file OutdoorPvPSI.cpp.

+ Here is the call graph for this function:

◆ SetupOutdoorPvP()

bool OutdoorPvPSI::SetupOutdoorPvP ( )
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 69 of file OutdoorPvPSI.cpp.

+ Here is the call graph for this function:

◆ Update()

bool OutdoorPvPSI::Update ( uint32  diff)
overridevirtual

Reimplemented from OutdoorPvP.

Definition at line 78 of file OutdoorPvPSI.cpp.

◆ UpdateWorldState()

void OutdoorPvPSI::UpdateWorldState ( )

Definition at line 62 of file OutdoorPvPSI.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_Gathered_A

uint32 OutdoorPvPSI::m_Gathered_A
private

Definition at line 55 of file OutdoorPvPSI.h.

◆ m_Gathered_H

uint32 OutdoorPvPSI::m_Gathered_H
private

Definition at line 56 of file OutdoorPvPSI.h.

◆ m_LastController

uint32 OutdoorPvPSI::m_LastController
private

Definition at line 57 of file OutdoorPvPSI.h.


The documentation for this class was generated from the following files: