Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
OPvPCapturePoint Class Referenceabstract

#include <OutdoorPvP.h>

Inheritance diagram for OPvPCapturePoint:
Collaboration diagram for OPvPCapturePoint:

Public Member Functions

void AddCre (uint32 type, uint32 guid, uint32 entry=0)
void AddGO (uint32 type, uint32 guid, uint32 entry=0)
virtual bool CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso)
virtual void ChangeState ()=0
virtual void ChangeTeam (TeamId)
virtual void DeleteSpawns ()
virtual void FillInitialWorldStates (WorldStateBuilder &)
virtual bool HandleCustomSpell (Player *player, uint32 spellId, GameObject *go)
virtual bool HandleDropFlag (Player *player, uint32 spellId)
virtual bool HandleGossipOption (Player *player, uint64 guid, uint32 gossipid)
virtual int32 HandleOpenGo (Player *player, uint64 guid)
virtual bool HandlePlayerEnter (Player *player)
virtual void HandlePlayerLeave (Player *player)
bool IsInsideObjective (Player *player) const
 OPvPCapturePoint (OutdoorPvP *pvp)
virtual void SendChangePhase ()
void SendObjectiveComplete (uint32 id, uint64 guid)
void SendUpdateWorldState (uint32 field, uint32 value)
bool SetCapturePointData (uint32 entry, uint32 map, float x, float y, float z, float o=0, float rotation0=0, float rotation1=0, float rotation2=0, float rotation3=0)
virtual bool Update (uint32 diff)
virtual ~OPvPCapturePoint ()

Public Attributes

GameObjectm_capturePoint
uint32 m_capturePointGUID

Protected Member Functions

bool AddCreature (uint32 type, uint32 entry, uint32 teamval, uint32 map, float x, float y, float z, float o, uint32 spawntimedelay=0)
bool AddObject (uint32 type, uint32 entry, uint32 map, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3)
bool DelCapturePoint ()
bool DelCreature (uint32 type)
bool DelObject (uint32 type)

Protected Attributes

PlayerSet m_activePlayers [2]
std::map< uint32, uint64m_Creatures
std::map< uint64, uint32m_CreatureTypes
float m_maxSpeed
float m_maxValue
float m_minValue
uint32 m_neutralValuePct
std::map< uint32, uint64m_Objects
std::map< uint64, uint32m_ObjectTypes
ObjectiveStates m_OldState
OutdoorPvPm_PvP
ObjectiveStates m_State
TeamId m_team
float m_value

Detailed Description

Definition at line 78 of file OutdoorPvP.h.

Constructor & Destructor Documentation

◆ OPvPCapturePoint()

◆ ~OPvPCapturePoint()

virtual OPvPCapturePoint::~OPvPCapturePoint ( )
inlinevirtual

Definition at line 83 of file OutdoorPvP.h.

Member Function Documentation

◆ AddCre()

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

Definition at line 70 of file OutdoorPvP.cpp.

References HIGHGUID_UNIT, CreatureData::id, m_Creatures, m_CreatureTypes, MAKE_NEW_GUID(), and sObjectMgr.

Referenced by AddCreature().

◆ AddCreature()

bool OPvPCapturePoint::AddCreature ( uint32 type,
uint32 entry,
uint32 teamval,
uint32 map,
float x,
float y,
float z,
float o,
uint32 spawntimedelay = 0 )
protected

◆ AddGO()

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

Definition at line 57 of file OutdoorPvP.cpp.

References HIGHGUID_GAMEOBJECT, GameObjectData::id, m_Objects, m_ObjectTypes, MAKE_NEW_GUID(), and sObjectMgr.

Referenced by AddObject().

◆ AddObject()

bool OPvPCapturePoint::AddObject ( uint32 type,
uint32 entry,
uint32 map,
float x,
float y,
float z,
float o,
float rotation0,
float rotation1,
float rotation2,
float rotation3 )
protected

◆ CanTalkTo()

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

Reimplemented in OPvPCapturePointZM_GraveYard.

Definition at line 523 of file OutdoorPvP.cpp.

◆ ChangeState()

virtual void OPvPCapturePoint::ChangeState ( )
pure virtual

◆ ChangeTeam()

virtual void OPvPCapturePoint::ChangeTeam ( TeamId )
inlinevirtual

Definition at line 109 of file OutdoorPvP.h.

Referenced by Update().

◆ DelCapturePoint()

bool OPvPCapturePoint::DelCapturePoint ( )
protected

Definition at line 189 of file OutdoorPvP.cpp.

References m_capturePoint, m_capturePointGUID, and sObjectMgr.

Referenced by DeleteSpawns().

◆ DelCreature()

◆ DeleteSpawns()

void OPvPCapturePoint::DeleteSpawns ( )
virtual

Definition at line 203 of file OutdoorPvP.cpp.

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

◆ DelObject()

◆ FillInitialWorldStates()

virtual void OPvPCapturePoint::FillInitialWorldStates ( WorldStateBuilder & )
inlinevirtual

◆ HandleCustomSpell()

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

Reimplemented in OPvPCapturePointNA.

Definition at line 475 of file OutdoorPvP.cpp.

References Player::IsOutdoorPvPActive().

◆ HandleDropFlag()

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

Reimplemented in OPvPCapturePointZM_GraveYard.

Definition at line 528 of file OutdoorPvP.cpp.

◆ HandleGossipOption()

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

Reimplemented in OPvPCapturePointZM_GraveYard.

Definition at line 518 of file OutdoorPvP.cpp.

◆ HandleOpenGo()

int32 OPvPCapturePoint::HandleOpenGo ( Player * player,
uint64 guid )
virtual

◆ HandlePlayerEnter()

◆ HandlePlayerLeave()

◆ IsInsideObjective()

bool OPvPCapturePoint::IsInsideObjective ( Player * player) const

Definition at line 460 of file OutdoorPvP.cpp.

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

◆ SendChangePhase()

void OPvPCapturePoint::SendChangePhase ( )
virtual

◆ SendObjectiveComplete()

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

◆ SendUpdateWorldState()

◆ SetCapturePointData()

◆ Update()

Member Data Documentation

◆ m_activePlayers

◆ m_capturePoint

GameObject* OPvPCapturePoint::m_capturePoint

◆ m_capturePointGUID

◆ m_Creatures

std::map<uint32, uint64> OPvPCapturePoint::m_Creatures
protected

◆ m_CreatureTypes

std::map<uint64, uint32> OPvPCapturePoint::m_CreatureTypes
protected

◆ m_maxSpeed

float OPvPCapturePoint::m_maxSpeed
protected

Definition at line 150 of file OutdoorPvP.h.

Referenced by OPvPCapturePoint(), SetCapturePointData(), and Update().

◆ m_maxValue

◆ m_minValue

float OPvPCapturePoint::m_minValue
protected

Definition at line 147 of file OutdoorPvP.h.

Referenced by OPvPCapturePoint(), SetCapturePointData(), and Update().

◆ m_neutralValuePct

◆ m_Objects

std::map<uint32, uint64> OPvPCapturePoint::m_Objects
protected

Definition at line 169 of file OutdoorPvP.h.

Referenced by AddGO(), OPvPCapturePointHP::ChangeState(), DeleteSpawns(), and DelObject().

◆ m_ObjectTypes

std::map<uint64, uint32> OPvPCapturePoint::m_ObjectTypes
protected

Definition at line 171 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 155 of file OutdoorPvP.h.

Referenced by OPvPCapturePoint(), and Update().

◆ m_value


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