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 *, Creature *, uint32)
 
virtual bool CanTalkTo (Player *, Creature *, GossipMenuItems const &)
 
virtual bool HandleDropFlag (Player *, uint32)
 
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
 
GameObject * m_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
 
OutdoorPvP * m_PvP
 
std::map< uint32, ObjectGuid::LowType > m_Objects
 
std::map< uint32, ObjectGuid::LowType > m_Creatures
 
std::map< ObjectGuid::LowType, uint32 > m_ObjectTypes
 
std::map< ObjectGuid::LowType, uint32 > m_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.

References SpawnData::id, m_Creatures, m_CreatureTypes, and sObjectMgr.

Referenced by AddCreature().

◆ AddCreature()

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

◆ AddGO()

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

Definition at line 90 of file OutdoorPvP.cpp.

References SpawnData::id, m_Objects, m_ObjectTypes, and sObjectMgr.

Referenced by AddObject().

◆ AddObject()

◆ CanTalkTo()

virtual bool OPvPCapturePoint::CanTalkTo ( Player *  ,
Creature *  ,
GossipMenuItems const &   
)
inlinevirtual

Reimplemented in OPvPCapturePointZM_Graveyard.

Definition at line 124 of file OutdoorPvP.h.

◆ ChangeState()

◆ ChangeTeam()

virtual void OPvPCapturePoint::ChangeTeam ( TeamId  )
inlinevirtual

Definition at line 118 of file OutdoorPvP.h.

Referenced by Update().

◆ DelCapturePoint()

bool OPvPCapturePoint::DelCapturePoint ( )
protected

◆ DelCreature()

◆ DeleteSpawns()

void OPvPCapturePoint::DeleteSpawns ( )
virtual

Definition at line 207 of file OutdoorPvP.cpp.

References DelCapturePoint(), DelCreature(), DelObject(), m_Creatures, and m_Objects.

◆ DelObject()

◆ FillInitialWorldStates()

◆ HandleCustomSpell()

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

Reimplemented in OPvPCapturePointNA.

Definition at line 494 of file OutdoorPvP.cpp.

References Player::IsOutdoorPvPActive().

◆ HandleDropFlag()

virtual bool OPvPCapturePoint::HandleDropFlag ( Player *  ,
uint32   
)
inlinevirtual

Reimplemented in OPvPCapturePointZM_Graveyard.

Definition at line 126 of file OutdoorPvP.h.

◆ HandleGossipOption()

virtual bool OPvPCapturePoint::HandleGossipOption ( Player *  ,
Creature *  ,
uint32   
)
inlinevirtual

Reimplemented in OPvPCapturePointZM_Graveyard.

Definition at line 122 of file OutdoorPvP.h.

◆ HandleOpenGo()

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

◆ HandlePlayerEnter()

◆ HandlePlayerLeave()

void OPvPCapturePoint::HandlePlayerLeave ( Player *  player)
virtual

◆ IsInsideObjective()

bool OPvPCapturePoint::IsInsideObjective ( Player *  player) const

Definition at line 479 of file OutdoorPvP.cpp.

References Object::GetGUID(), Player::GetTeamId(), and m_activePlayers.

◆ SendChangePhase()

◆ SendObjectiveComplete()

◆ SendUpdateWorldState()

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

Definition at line 409 of file OutdoorPvP.cpp.

References ObjectAccessor::FindPlayer(), and m_activePlayers.

Referenced by SendChangePhase().

◆ SetCapturePointData()

◆ Update()

Member Data Documentation

◆ m_activePlayers

◆ m_capturePoint

GameObject* OPvPCapturePoint::m_capturePoint

◆ m_capturePointSpawnId

◆ m_Creatures

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

◆ m_CreatureTypes

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

◆ m_maxSpeed

float OPvPCapturePoint::m_maxSpeed
protected

Definition at line 159 of file OutdoorPvP.h.

Referenced by SetCapturePointData(), and Update().

◆ m_maxValue

float OPvPCapturePoint::m_maxValue
protected

Definition at line 155 of file OutdoorPvP.h.

Referenced by HandlePlayerEnter(), SendChangePhase(), SetCapturePointData(), and Update().

◆ m_minValue

float OPvPCapturePoint::m_minValue
protected

Definition at line 156 of file OutdoorPvP.h.

Referenced by SetCapturePointData(), and Update().

◆ m_neutralValuePct

uint32 OPvPCapturePoint::m_neutralValuePct
protected

Definition at line 171 of file OutdoorPvP.h.

Referenced by HandlePlayerEnter(), SendChangePhase(), and SetCapturePointData().

◆ m_Objects

◆ m_ObjectTypes

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

Definition at line 180 of file OutdoorPvP.h.

Referenced by AddGO(), DelObject(), and HandleOpenGo().

◆ m_OldState

◆ m_PvP

◆ m_State

◆ m_team

TeamId OPvPCapturePoint::m_team
protected

Definition at line 164 of file OutdoorPvP.h.

Referenced by Update().

◆ m_value

float OPvPCapturePoint::m_value
protected

Definition at line 162 of file OutdoorPvP.h.

Referenced by HandlePlayerEnter(), SendChangePhase(), and Update().


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