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

#include <Battlefield.h>

+ Inheritance diagram for BfGraveyard:

Public Member Functions

 BfGraveyard (Battlefield *bf)
 
 BfGraveyard (BfGraveyard const &)=delete
 
 BfGraveyard (BfGraveyard &&)=delete
 
BfGraveyardoperator= (BfGraveyard const &)=delete
 
BfGraveyardoperator= (BfGraveyard &&)=delete
 
virtual ~BfGraveyard ()
 
void GiveControlTo (TeamId team)
 
TeamId GetControlTeamId () const
 
float GetDistance (Player *player)
 
void Initialize (TeamId startcontrol, uint32 gy)
 
void SetSpirit (Creature *spirit, TeamId team)
 
void AddPlayer (ObjectGuid player_guid)
 
void RemovePlayer (ObjectGuid player_guid)
 
void Resurrect ()
 
void RelocateDeadPlayers ()
 
bool HasNpc (ObjectGuid guid)
 
bool HasPlayer (ObjectGuid guid)
 
uint32 GetGraveyardId () const
 

Protected Attributes

TeamId m_ControlTeam
 
uint32 m_GraveyardId
 
ObjectGuid m_SpiritGuide [PVP_TEAMS_COUNT]
 
GuidSet m_ResurrectQueue
 
Battlefieldm_Bf
 

Detailed Description

Definition at line 157 of file Battlefield.h.

Constructor & Destructor Documentation

◆ BfGraveyard() [1/3]

BfGraveyard::BfGraveyard ( Battlefield bf)
explicit

Definition at line 643 of file Battlefield.cpp.

◆ BfGraveyard() [2/3]

BfGraveyard::BfGraveyard ( BfGraveyard const &  )
delete

◆ BfGraveyard() [3/3]

BfGraveyard::BfGraveyard ( BfGraveyard &&  )
delete

◆ ~BfGraveyard()

BfGraveyard::~BfGraveyard ( )
virtualdefault

Member Function Documentation

◆ AddPlayer()

void BfGraveyard::AddPlayer ( ObjectGuid  player_guid)

Definition at line 676 of file Battlefield.cpp.

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

◆ GetControlTeamId()

TeamId BfGraveyard::GetControlTeamId ( ) const
inline

Definition at line 170 of file Battlefield.h.

◆ GetDistance()

float BfGraveyard::GetDistance ( Player player)

Definition at line 670 of file Battlefield.cpp.

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

◆ GetGraveyardId()

uint32 BfGraveyard::GetGraveyardId ( ) const
inline

Definition at line 200 of file Battlefield.h.

+ Here is the caller graph for this function:

◆ GiveControlTo()

void BfGraveyard::GiveControlTo ( TeamId  team)

Definition at line 725 of file Battlefield.cpp.

+ Here is the call graph for this function:

◆ HasNpc()

bool BfGraveyard::HasNpc ( ObjectGuid  guid)

Definition at line 759 of file Battlefield.cpp.

+ Here is the call graph for this function:

◆ HasPlayer()

bool BfGraveyard::HasPlayer ( ObjectGuid  guid)
inline

Definition at line 197 of file Battlefield.h.

◆ Initialize()

void BfGraveyard::Initialize ( TeamId  startcontrol,
uint32  gy 
)

Definition at line 652 of file Battlefield.cpp.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

BfGraveyard & BfGraveyard::operator= ( BfGraveyard &&  )
delete

◆ operator=() [2/2]

BfGraveyard & BfGraveyard::operator= ( BfGraveyard const &  )
delete

◆ RelocateDeadPlayers()

void BfGraveyard::RelocateDeadPlayers ( )

Definition at line 739 of file Battlefield.cpp.

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

◆ RemovePlayer()

void BfGraveyard::RemovePlayer ( ObjectGuid  player_guid)

Definition at line 687 of file Battlefield.cpp.

+ Here is the call graph for this function:

◆ Resurrect()

void BfGraveyard::Resurrect ( )

Definition at line 695 of file Battlefield.cpp.

+ Here is the call graph for this function:

◆ SetSpirit()

void BfGraveyard::SetSpirit ( Creature spirit,
TeamId  team 
)

Definition at line 658 of file Battlefield.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_Bf

Battlefield* BfGraveyard::m_Bf
protected

Definition at line 207 of file Battlefield.h.

◆ m_ControlTeam

TeamId BfGraveyard::m_ControlTeam
protected

Definition at line 203 of file Battlefield.h.

◆ m_GraveyardId

uint32 BfGraveyard::m_GraveyardId
protected

Definition at line 204 of file Battlefield.h.

◆ m_ResurrectQueue

GuidSet BfGraveyard::m_ResurrectQueue
protected

Definition at line 206 of file Battlefield.h.

◆ m_SpiritGuide

ObjectGuid BfGraveyard::m_SpiritGuide[PVP_TEAMS_COUNT]
protected

Definition at line 205 of file Battlefield.h.


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