![]() |
TrinityCore
|
#include <Battlefield.h>
Inheritance diagram for BfGraveyard:Public Member Functions | |
| BfGraveyard (Battlefield *bf) | |
| BfGraveyard (BfGraveyard const &)=delete | |
| BfGraveyard (BfGraveyard &&)=delete | |
| BfGraveyard & | operator= (BfGraveyard const &)=delete |
| BfGraveyard & | operator= (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 |
| Battlefield * | m_Bf |
Definition at line 157 of file Battlefield.h.
|
explicit |
Definition at line 662 of file Battlefield.cpp.
References m_Bf, m_ControlTeam, m_GraveyardId, and TEAM_NEUTRAL.
|
delete |
|
delete |
|
virtualdefault |
| void BfGraveyard::AddPlayer | ( | ObjectGuid | player_guid | ) |
Definition at line 695 of file Battlefield.cpp.
References ObjectAccessor::FindPlayer(), m_ResurrectQueue, and SPELL_WAITING_FOR_RESURRECT.
Referenced by Battlefield::AddPlayerToResurrectQueue().
|
inline |
Definition at line 170 of file Battlefield.h.
| float BfGraveyard::GetDistance | ( | Player * | player | ) |
Definition at line 689 of file Battlefield.cpp.
References WorldObject::GetDistance2d(), WorldSafeLocsEntry::Loc, m_GraveyardId, sWorldSafeLocsStore, DBCPosition3D::X, and DBCPosition3D::Y.
Referenced by Battlefield::GetClosestGraveyard().
|
inline |
Definition at line 200 of file Battlefield.h.
Referenced by Battlefield::GetClosestGraveyard().
| void BfGraveyard::GiveControlTo | ( | TeamId | team | ) |
Definition at line 744 of file Battlefield.cpp.
References m_ControlTeam, and RelocateDeadPlayers().
| bool BfGraveyard::HasNpc | ( | ObjectGuid | guid | ) |
Definition at line 778 of file Battlefield.cpp.
References Battlefield::GetCreature(), m_Bf, m_SpiritGuide, TEAM_ALLIANCE, and TEAM_HORDE.
|
inline |
Definition at line 197 of file Battlefield.h.
Definition at line 671 of file Battlefield.cpp.
References m_ControlTeam, and m_GraveyardId.
Referenced by BattlefieldWG::SetupBattlefield().
|
delete |
|
delete |
| void BfGraveyard::RelocateDeadPlayers | ( | ) |
Definition at line 758 of file Battlefield.cpp.
References ObjectAccessor::FindPlayer(), Battlefield::GetClosestGraveyard(), WorldLocation::GetMapId(), Position::GetOrientation(), WorldSafeLocsEntry::Loc, m_Bf, m_ResurrectQueue, Player::TeleportTo(), DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by GiveControlTo().
| void BfGraveyard::RemovePlayer | ( | ObjectGuid | player_guid | ) |
Definition at line 706 of file Battlefield.cpp.
References ObjectAccessor::FindPlayer(), m_ResurrectQueue, and SPELL_WAITING_FOR_RESURRECT.
| void BfGraveyard::Resurrect | ( | ) |
Definition at line 714 of file Battlefield.cpp.
References WorldObject::CastSpell(), ObjectAccessor::FindPlayer(), Battlefield::GetCreature(), Object::IsInWorld(), m_Bf, m_ControlTeam, m_ResurrectQueue, m_SpiritGuide, Player::ResurrectPlayer(), Player::SpawnCorpseBones(), SPELL_RESURRECTION_VISUAL, SPELL_SPIRIT_HEAL, and SPELL_SPIRIT_HEAL_MANA.
Definition at line 677 of file Battlefield.cpp.
References Object::GetGUID(), m_SpiritGuide, REACT_PASSIVE, Creature::SetReactState(), and TC_LOG_ERROR.
|
protected |
Definition at line 207 of file Battlefield.h.
Referenced by BfGraveyard(), BfGraveyardWG::BfGraveyardWG(), HasNpc(), RelocateDeadPlayers(), and Resurrect().
|
protected |
Definition at line 203 of file Battlefield.h.
Referenced by BfGraveyard(), GiveControlTo(), Initialize(), and Resurrect().
|
protected |
Definition at line 204 of file Battlefield.h.
Referenced by BfGraveyard(), GetDistance(), and Initialize().
|
protected |
Definition at line 206 of file Battlefield.h.
Referenced by AddPlayer(), RelocateDeadPlayers(), RemovePlayer(), and Resurrect().
|
protected |
Definition at line 205 of file Battlefield.h.
Referenced by HasNpc(), Resurrect(), and SetSpirit().