|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Battlefield.h>
Public Member Functions | |
| void | AddPlayer (uint64 player_guid) |
| BfGraveyard (Battlefield *Bf) | |
| TeamId | GetControlTeamId () const |
| float | GetDistance (Player *player) |
| uint32 | GetGraveyardId () const |
| void | GiveControlTo (TeamId team) |
| bool | HasNpc (uint64 guid) |
| bool | HasPlayer (uint64 guid) |
| void | Initialize (TeamId startcontrol, uint32 gy) |
| void | RelocateDeadPlayers () |
| void | RemovePlayer (uint64 player_guid) |
| void | Resurrect () |
| void | SetSpirit (Creature *spirit, TeamId team) |
| virtual | ~BfGraveyard () |
Protected Attributes | |
| Battlefield * | m_Bf |
| TeamId | m_ControlTeam |
| uint32 | m_GraveyardId |
| GuidSet | m_ResurrectQueue |
| uint64 | m_SpiritGuide [2] = {} |
Definition at line 135 of file Battlefield.h.
|
inline |
Definition at line 138 of file Battlefield.h.
References m_Bf, m_ControlTeam, m_GraveyardId, and TEAM_NEUTRAL.
Referenced by BfGraveyardWG::BfGraveyardWG().
|
inlinevirtual |
Definition at line 139 of file Battlefield.h.
| void BfGraveyard::AddPlayer | ( | uint64 | player_guid | ) |
Definition at line 635 of file Battlefield.cpp.
References m_ResurrectQueue, sObjectAccessor, and SPELL_WAITING_FOR_RESURRECT.
|
inline |
Definition at line 143 of file Battlefield.h.
References m_ControlTeam.
| float BfGraveyard::GetDistance | ( | Player * | player | ) |
Definition at line 629 of file Battlefield.cpp.
References WorldObject::GetDistance2d(), m_GraveyardId, sWorldSafeLocsStore, WorldSafeLocsEntry::x, and WorldSafeLocsEntry::y.
|
inline |
Definition at line 173 of file Battlefield.h.
References m_GraveyardId.
Referenced by Battlefield::GetClosestGraveYard().
| void BfGraveyard::GiveControlTo | ( | TeamId | team | ) |
Definition at line 684 of file Battlefield.cpp.
References m_ControlTeam, and RelocateDeadPlayers().
| bool BfGraveyard::HasNpc | ( | uint64 | guid | ) |
Definition at line 718 of file Battlefield.cpp.
References m_Bf, and m_SpiritGuide.
|
inline |
Definition at line 170 of file Battlefield.h.
References m_ResurrectQueue.
Definition at line 611 of file Battlefield.cpp.
References m_ControlTeam, and m_GraveyardId.
Referenced by BattlefieldWG::SetupBattlefield().
| void BfGraveyard::RelocateDeadPlayers | ( | ) |
Definition at line 698 of file Battlefield.cpp.
References WorldLocation::GetMapId(), Position::GetOrientation(), m_Bf, m_ResurrectQueue, sObjectAccessor, Player::TeleportTo(), WorldSafeLocsEntry::x, WorldSafeLocsEntry::y, and WorldSafeLocsEntry::z.
Referenced by GiveControlTo().
| void BfGraveyard::RemovePlayer | ( | uint64 | player_guid | ) |
Definition at line 646 of file Battlefield.cpp.
References m_ResurrectQueue, sObjectAccessor, and SPELL_WAITING_FOR_RESURRECT.
| void BfGraveyard::Resurrect | ( | ) |
Definition at line 654 of file Battlefield.cpp.
References Unit::CastSpell(), Object::GetGUID(), Object::IsInWorld(), m_Bf, m_ControlTeam, m_ResurrectQueue, m_SpiritGuide, Player::ResurrectPlayer(), sObjectAccessor, SPELL_RESURRECTION_VISUAL, SPELL_SPIRIT_HEAL, and SPELL_SPIRIT_HEAL_MANA.
Definition at line 617 of file Battlefield.cpp.
References Object::GetGUID(), m_SpiritGuide, REACT_PASSIVE, Creature::SetReactState(), and SF_LOG_ERROR.
|
protected |
Definition at line 180 of file Battlefield.h.
Referenced by BfGraveyard(), BfGraveyardWG::BfGraveyardWG(), HasNpc(), RelocateDeadPlayers(), and Resurrect().
|
protected |
Definition at line 176 of file Battlefield.h.
Referenced by BfGraveyard(), GetControlTeamId(), GiveControlTo(), Initialize(), and Resurrect().
|
protected |
Definition at line 177 of file Battlefield.h.
Referenced by BfGraveyard(), GetDistance(), GetGraveyardId(), and Initialize().
|
protected |
Definition at line 179 of file Battlefield.h.
Referenced by AddPlayer(), HasPlayer(), RelocateDeadPlayers(), RemovePlayer(), and Resurrect().
|
protected |
Definition at line 178 of file Battlefield.h.
Referenced by HasNpc(), Resurrect(), and SetSpirit().