TrinityCore
Loading...
Searching...
No Matches
OPvPCapturePoint Class Referenceabstract

#include <OutdoorPvP.h>

+ Inheritance diagram for OPvPCapturePoint:

Public Member Functions

 OPvPCapturePoint (OutdoorPvP *pvp)
 
virtual ~OPvPCapturePoint ()
 
virtual void FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &)
 
void SendUpdateWorldState (uint32 field, uint32 value)
 
void SendObjectiveComplete (uint32 id, ObjectGuid guid)
 
virtual bool HandlePlayerEnter (Player *player)
 
virtual void HandlePlayerLeave (Player *player)
 
bool IsInsideObjective (Player *player) const
 
virtual bool HandleCustomSpell (Player *player, uint32 spellId, GameObject *go)
 
virtual int32 HandleOpenGo (Player *player, GameObject *go)
 
virtual bool Update (uint32 diff)
 
virtual void ChangeState ()=0
 
virtual void ChangeTeam (TeamId)
 
virtual void SendChangePhase ()
 
virtual bool HandleGossipOption (Player *player, Creature *guid, uint32 gossipid)
 
virtual bool CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso)
 
virtual bool HandleDropFlag (Player *player, uint32 spellId)
 
virtual void DeleteSpawns ()
 
void AddGO (uint32 type, ObjectGuid::LowType guid, uint32 entry=0)
 
void AddCre (uint32 type, ObjectGuid::LowType guid, uint32 entry=0)
 
bool SetCapturePointData (uint32 entry, uint32 map, Position const &pos, QuaternionData const &rot)
 

Public Attributes

ObjectGuid::LowType m_capturePointSpawnId
 
GameObjectm_capturePoint
 

Protected Member Functions

bool AddObject (uint32 type, uint32 entry, uint32 map, Position const &pos, QuaternionData const &rot)
 
bool AddCreature (uint32 type, uint32 entry, uint32 map, Position const &pos, TeamId teamId=TEAM_NEUTRAL, uint32 spawntimedelay=0)
 
bool DelObject (uint32 type)
 
bool DelCreature (uint32 type)
 
bool DelCapturePoint ()
 

Protected Attributes

GuidSet m_activePlayers [2]
 
float m_maxValue
 
float m_minValue
 
float m_maxSpeed
 
float m_value
 
TeamId m_team
 
ObjectiveStates m_OldState
 
ObjectiveStates m_State
 
uint32 m_neutralValuePct
 
OutdoorPvPm_PvP
 
std::map< uint32, ObjectGuid::LowTypem_Objects
 
std::map< uint32, ObjectGuid::LowTypem_Creatures
 
std::map< ObjectGuid::LowType, uint32m_ObjectTypes
 
std::map< ObjectGuid::LowType, uint32m_CreatureTypes
 

Detailed Description

Definition at line 86 of file OutdoorPvP.h.

Constructor & Destructor Documentation

◆ OPvPCapturePoint()

OPvPCapturePoint::OPvPCapturePoint ( OutdoorPvP pvp)

Definition at line 53 of file OutdoorPvP.cpp.

◆ ~OPvPCapturePoint()

virtual OPvPCapturePoint::~OPvPCapturePoint ( )
inlinevirtual

Definition at line 92 of file OutdoorPvP.h.

Member Function Documentation

◆ AddCre()

void OPvPCapturePoint::AddCre ( uint32  type,
ObjectGuid::LowType  guid,
uint32  entry = 0 
)

Definition at line 104 of file OutdoorPvP.cpp.

+ Here is the caller graph for this function:

◆ AddCreature()

bool OPvPCapturePoint::AddCreature ( uint32  type,
uint32  entry,
uint32  map,
Position const &  pos,
TeamId  teamId = TEAM_NEUTRAL,
uint32  spawntimedelay = 0 
)
protected

Definition at line 129 of file OutdoorPvP.cpp.

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

◆ AddGO()

void OPvPCapturePoint::AddGO ( uint32  type,
ObjectGuid::LowType  guid,
uint32  entry = 0 
)

Definition at line 90 of file OutdoorPvP.cpp.

+ Here is the caller graph for this function:

◆ AddObject()

bool OPvPCapturePoint::AddObject ( uint32  type,
uint32  entry,
uint32  map,
Position const &  pos,
QuaternionData const &  rot 
)
protected

Definition at line 118 of file OutdoorPvP.cpp.

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

◆ CanTalkTo()

bool OPvPCapturePoint::CanTalkTo ( Player player,
Creature c,
GossipMenuItems const &  gso 
)
virtual

Reimplemented in OPvPCapturePointZM_Graveyard.

Definition at line 542 of file OutdoorPvP.cpp.

◆ ChangeState()

virtual void OPvPCapturePoint::ChangeState ( )
pure virtual

Implemented in OPvPCapturePointEP_EWT, OPvPCapturePointEP_NPT, OPvPCapturePointEP_CGT, OPvPCapturePointEP_PWT, OPvPCapturePointHP, OPvPCapturePointNA, OPvPCapturePointTF, OPvPCapturePointZM_Beacon, and OPvPCapturePointZM_Graveyard.

+ Here is the caller graph for this function:

◆ ChangeTeam()

virtual void OPvPCapturePoint::ChangeTeam ( TeamId  )
inlinevirtual

Definition at line 118 of file OutdoorPvP.h.

+ Here is the caller graph for this function:

◆ DelCapturePoint()

bool OPvPCapturePoint::DelCapturePoint ( )
protected

Definition at line 193 of file OutdoorPvP.cpp.

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

◆ DelCreature()

bool OPvPCapturePoint::DelCreature ( uint32  type)
protected

Definition at line 166 of file OutdoorPvP.cpp.

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

◆ DeleteSpawns()

void OPvPCapturePoint::DeleteSpawns ( )
virtual

Definition at line 207 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

◆ DelObject()

bool OPvPCapturePoint::DelObject ( uint32  type)
protected

Definition at line 181 of file OutdoorPvP.cpp.

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

◆ FillInitialWorldStates()

◆ HandleCustomSpell()

bool OPvPCapturePoint::HandleCustomSpell ( Player player,
uint32  spellId,
GameObject go 
)
virtual

Reimplemented in OPvPCapturePointNA.

Definition at line 494 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

◆ HandleDropFlag()

bool OPvPCapturePoint::HandleDropFlag ( Player player,
uint32  spellId 
)
virtual

Reimplemented in OPvPCapturePointZM_Graveyard.

Definition at line 547 of file OutdoorPvP.cpp.

◆ HandleGossipOption()

bool OPvPCapturePoint::HandleGossipOption ( Player player,
Creature guid,
uint32  gossipid 
)
virtual

Reimplemented in OPvPCapturePointZM_Graveyard.

Definition at line 537 of file OutdoorPvP.cpp.

◆ HandleOpenGo()

int32 OPvPCapturePoint::HandleOpenGo ( Player player,
GameObject go 
)
virtual

Reimplemented in OPvPCapturePointNA, and OPvPCapturePointZM_Graveyard.

Definition at line 552 of file OutdoorPvP.cpp.

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

◆ HandlePlayerEnter()

bool OPvPCapturePoint::HandlePlayerEnter ( Player player)
virtual

Definition at line 59 of file OutdoorPvP.cpp.

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

◆ HandlePlayerLeave()

void OPvPCapturePoint::HandlePlayerLeave ( Player player)
virtual

Definition at line 70 of file OutdoorPvP.cpp.

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

◆ IsInsideObjective()

bool OPvPCapturePoint::IsInsideObjective ( Player player) const

Definition at line 479 of file OutdoorPvP.cpp.

+ Here is the call graph for this function:

◆ SendChangePhase()

void OPvPCapturePoint::SendChangePhase ( )
virtual

Definition at line 77 of file OutdoorPvP.cpp.

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

◆ SendObjectiveComplete()

void OPvPCapturePoint::SendObjectiveComplete ( uint32  id,
ObjectGuid  guid 
)

Definition at line 420 of file OutdoorPvP.cpp.

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

◆ SendUpdateWorldState()

void OPvPCapturePoint::SendUpdateWorldState ( uint32  field,
uint32  value 
)

Definition at line 409 of file OutdoorPvP.cpp.

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

◆ SetCapturePointData()

bool OPvPCapturePoint::SetCapturePointData ( uint32  entry,
uint32  map,
Position const &  pos,
QuaternionData const &  rot 
)

Definition at line 140 of file OutdoorPvP.cpp.

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

◆ Update()

bool OPvPCapturePoint::Update ( uint32  diff)
virtual

Reimplemented in OPvPCapturePointNA, OPvPCapturePointTF, and OPvPCapturePointZM_Graveyard.

Definition at line 278 of file OutdoorPvP.cpp.

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

Member Data Documentation

◆ m_activePlayers

GuidSet OPvPCapturePoint::m_activePlayers[2]
protected

Definition at line 152 of file OutdoorPvP.h.

◆ m_capturePoint

GameObject* OPvPCapturePoint::m_capturePoint

Definition at line 132 of file OutdoorPvP.h.

◆ m_capturePointSpawnId

ObjectGuid::LowType OPvPCapturePoint::m_capturePointSpawnId

Definition at line 130 of file OutdoorPvP.h.

◆ m_Creatures

std::map<uint32, ObjectGuid::LowType> OPvPCapturePoint::m_Creatures
protected

Definition at line 179 of file OutdoorPvP.h.

◆ m_CreatureTypes

std::map<ObjectGuid::LowType, uint32> OPvPCapturePoint::m_CreatureTypes
protected

Definition at line 181 of file OutdoorPvP.h.

◆ m_maxSpeed

float OPvPCapturePoint::m_maxSpeed
protected

Definition at line 159 of file OutdoorPvP.h.

◆ m_maxValue

float OPvPCapturePoint::m_maxValue
protected

Definition at line 155 of file OutdoorPvP.h.

◆ m_minValue

float OPvPCapturePoint::m_minValue
protected

Definition at line 156 of file OutdoorPvP.h.

◆ m_neutralValuePct

uint32 OPvPCapturePoint::m_neutralValuePct
protected

Definition at line 171 of file OutdoorPvP.h.

◆ m_Objects

std::map<uint32, ObjectGuid::LowType> OPvPCapturePoint::m_Objects
protected

Definition at line 178 of file OutdoorPvP.h.

◆ m_ObjectTypes

std::map<ObjectGuid::LowType, uint32> OPvPCapturePoint::m_ObjectTypes
protected

Definition at line 180 of file OutdoorPvP.h.

◆ m_OldState

ObjectiveStates OPvPCapturePoint::m_OldState
protected

Definition at line 167 of file OutdoorPvP.h.

◆ m_PvP

OutdoorPvP* OPvPCapturePoint::m_PvP
protected

Definition at line 174 of file OutdoorPvP.h.

◆ m_State

ObjectiveStates OPvPCapturePoint::m_State
protected

Definition at line 168 of file OutdoorPvP.h.

◆ m_team

TeamId OPvPCapturePoint::m_team
protected

Definition at line 164 of file OutdoorPvP.h.

◆ m_value

float OPvPCapturePoint::m_value
protected

Definition at line 162 of file OutdoorPvP.h.


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