AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Battlefield.h"
Public Member Functions | |
BfGraveyard (Battlefield *Bf) | |
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) const |
uint32 | GetGraveyardId () const |
Protected Attributes | |
TeamId | m_ControlTeam |
uint32 | m_GraveyardId |
ObjectGuid | m_SpiritGuide [2] |
GuidUnorderedSet | m_ResurrectQueue |
Battlefield * | m_Bf |
BfGraveyard::BfGraveyard | ( | Battlefield * | Bf | ) |
References m_Bf, m_ControlTeam, m_GraveyardId, m_ResurrectQueue, and TEAM_NEUTRAL.
void BfGraveyard::AddPlayer | ( | ObjectGuid | player_guid | ) |
References ObjectAccessor::FindPlayer(), m_ResurrectQueue, and SPELL_WAITING_FOR_RESURRECT.
|
inline |
References m_ControlTeam.
float BfGraveyard::GetDistance | ( | Player * | player | ) |
References WorldObject::GetDistance2d(), m_GraveyardId, sGraveyard, GraveyardStruct::x, and GraveyardStruct::y.
|
inline |
void BfGraveyard::GiveControlTo | ( | TeamId | team | ) |
References m_ControlTeam, and RelocateDeadPlayers().
Referenced by WGWorkshop::GiveControlTo(), and WGWorkshop::UpdateGraveyardAndWorkshop().
|
inline |
References m_SpiritGuide.
|
inline |
References m_ResurrectQueue.
References m_ControlTeam, and m_GraveyardId.
Referenced by BattlefieldWG::SetupBattlefield().
void BfGraveyard::RelocateDeadPlayers | ( | ) |
References ObjectAccessor::FindPlayer(), Battlefield::GetClosestGraveyard(), WorldLocation::GetMapId(), Position::GetOrientation(), m_Bf, m_ResurrectQueue, Player::TeleportTo(), GraveyardStruct::x, GraveyardStruct::y, and GraveyardStruct::z.
Referenced by GiveControlTo().
void BfGraveyard::RemovePlayer | ( | ObjectGuid | player_guid | ) |
References ObjectAccessor::FindPlayer(), m_ResurrectQueue, and SPELL_WAITING_FOR_RESURRECT.
void BfGraveyard::Resurrect | ( | ) |
References Unit::CastSpell(), ObjectAccessor::FindPlayer(), ObjectAccessor::GetCreature(), Object::IsInWorld(), m_ControlTeam, m_ResurrectQueue, m_SpiritGuide, Player::ResurrectPlayer(), Player::SpawnCorpseBones(), SPELL_RESURRECTION_VISUAL, SPELL_SPIRIT_HEAL, and SPELL_SPIRIT_HEAL_MANA.
References Object::GetGUID(), LOG_ERROR, m_SpiritGuide, REACT_PASSIVE, and Creature::SetReactState().
|
protected |
Referenced by BfGraveyard(), BfGraveyardWG::BfGraveyardWG(), and RelocateDeadPlayers().
|
protected |
Referenced by BfGraveyard(), GetControlTeamId(), GiveControlTo(), Initialize(), and Resurrect().
|
protected |
Referenced by BfGraveyard(), GetDistance(), GetGraveyardId(), and Initialize().
|
protected |
Referenced by AddPlayer(), BfGraveyard(), HasPlayer(), RelocateDeadPlayers(), RemovePlayer(), and Resurrect().
|
protected |
Referenced by HasNpc(), Resurrect(), and SetSpirit().