|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BattlegroundVOP.h>
Private Attributes | |
| uint64 | m_FlagKeeper [4] = { } |
| uint32 | m_HonorScoreTics [BG_TEAMS_COUNT] = { } |
| uint32 | m_HonorTics |
| uint32 | m_lastTick [BG_TEAMS_COUNT] = { } |
| bool | m_TeamScores500Disadvantage [BG_TEAMS_COUNT] = { } |
Definition at line 80 of file BattlegroundVOP.h.
| BattlegroundVOP::BattlegroundVOP | ( | ) |
Definition at line 16 of file BattlegroundVOP.cpp.
References BG_STARTING_EVENT_FIRST, BG_STARTING_EVENT_FOURTH, BG_STARTING_EVENT_SECOND, BG_STARTING_EVENT_THIRD, BG_VOP_CREATURE_MAX, BG_VOP_OBJECT_MAX, Battleground::BgCreatures, Battleground::BgObjects, LANG_BG_VOP_HAS_BEGUN, LANG_BG_VOP_START_HALF_MINUTE, LANG_BG_VOP_START_ONE_MINUTE, LANG_BG_VOP_START_TWO_MINUTES, Battleground::m_BuffChange, and Battleground::StartMessageIds.
|
inline |
Definition at line 84 of file BattlegroundVOP.h.
|
virtual |
Reimplemented from Battleground.
Definition at line 281 of file BattlegroundVOP.cpp.
References Battleground::AddPlayer(), Object::GetGUID(), and Battleground::PlayerScores.
| void BattlegroundVOP::EndBattleground | ( | uint32 | winner | ) |
Definition at line 249 of file BattlegroundVOP.cpp.
References ALLIANCE, Battleground::EndBattleground(), Battleground::GetBonusHonorFromKill(), HORDE, and Battleground::RewardHonorToTeam().
Referenced by PostUpdateImpl(), and UpdateTeamScore().
|
virtual |
Reimplemented from Battleground.
Definition at line 133 of file BattlegroundVOP.cpp.
References BG_VOP_OBJECT_ORB_1, BG_VOP_OBJECT_ORB_1_ENTRY, BG_VOP_OBJECT_ORB_2, BG_VOP_OBJECT_ORB_2_ENTRY, BG_VOP_OBJECT_ORB_3, BG_VOP_OBJECT_ORB_3_ENTRY, BG_VOP_OBJECT_ORB_4, BG_VOP_OBJECT_ORB_4_ENTRY, BG_VOP_SOUND_ORB, BG_VOP_SPELL_ORB_PICKED_UP_1, BG_VOP_SPELL_ORB_PICKED_UP_2, BG_VOP_SPELL_ORB_PICKED_UP_3, BG_VOP_SPELL_ORB_PICKED_UP_4, Unit::CastSpell(), Object::GetEntry(), Object::GetGUID(), Battleground::GetStatus(), Unit::HasAura(), m_FlagKeeper, Battleground::PlaySoundToAll(), RESPAWN_ONE_DAY, SCORE_ORB_CONTROL, Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, and UpdatePlayerScore().
|
virtual |
Reimplemented from Battleground.
Definition at line 389 of file BattlegroundVOP.cpp.
References WorldStateBuilder::AppendState(), BG_VOP_MAX_TEAM_SCORE, BG_VOP_OP_RESOURCES_A, BG_VOP_OP_RESOURCES_H, BG_VOP_OP_RESOURCES_MAX, Battleground::m_TeamScores, TEAM_ALLIANCE, and TEAM_HORDE.
|
virtual |
Reimplemented from Battleground.
Definition at line 364 of file BattlegroundVOP.cpp.
References ALLIANCE, Player::GetTeam(), HORDE, SF_LOG_ERROR, and sWorldSafeLocsStore.
|
virtual |
Reimplemented from Battleground.
Definition at line 398 of file BattlegroundVOP.cpp.
References ALLIANCE, Battleground::GetPrematureWinner(), Battleground::GetTeamScore(), HORDE, TEAM_ALLIANCE, and TEAM_HORDE.
Reimplemented from Battleground.
Definition at line 289 of file BattlegroundVOP.cpp.
References ALLIANCE, BG_VOP_OBJECT_ORB_1, BG_VOP_OBJECT_ORB_2, BG_VOP_OBJECT_ORB_3, BG_VOP_OBJECT_ORB_4, BG_VOP_OP_RESOURCES_A, BG_VOP_OP_RESOURCES_H, BG_VOP_PK_VP, BG_VOP_SOUND_ORB, CHAT_MSG_RAID_BOSS_EMOTE, Player::GetBGTeam(), Object::GetGUID(), Battleground::GetStatus(), Battleground::HandleKillPlayer(), HORDE, LANG_BG_VOP_DROPPED_BLUE, LANG_BG_VOP_DROPPED_GREEN, LANG_BG_VOP_DROPPED_ORANGE, LANG_BG_VOP_DROPPED_PURPLE, m_FlagKeeper, Battleground::m_TeamScores, Battleground::PlaySoundToAll(), RESPAWN_IMMEDIATELY, SCORE_ORB_SCORE, Battleground::SendMessageToAll(), Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, UpdatePlayerScore(), and Battleground::UpdateWorldState().
|
virtual |
Post-update hook.
Will be called after battleground update has passed. May be used to implement custom update effects in subclasses.
| diff | a time difference between two worldserver update loops in milliseconds. |
Reimplemented from Battleground.
Definition at line 28 of file BattlegroundVOP.cpp.
References ALLIANCE, BG_TEAMS_COUNT, BG_VOP_MAX_TEAM_SCORE, BG_VOP_OP_RESOURCES_A, BG_VOP_OP_RESOURCES_H, BG_VOP_SPELL_ORB_PICKED_UP_1, BG_VOP_SPELL_ORB_PICKED_UP_2, BG_VOP_SPELL_ORB_PICKED_UP_3, BG_VOP_SPELL_ORB_PICKED_UP_4, BG_VOP_TickIntervals, BG_VOP_TickPoints, EndBattleground(), ObjectAccessor::FindPlayer(), Battleground::GetBonusHonorFromKill(), Battleground::GetPlayers(), Battleground::GetStatus(), HORDE, m_HonorScoreTics, m_HonorTics, m_lastTick, Battleground::m_TeamScores, m_TeamScores500Disadvantage, Battleground::RewardHonorToTeam(), SCORE_ORB_SCORE, STATUS_IN_PROGRESS, TEAM_ALLIANCE, TEAM_HORDE, UpdatePlayerScore(), and Battleground::UpdateWorldState().
Reimplemented from Battleground.
Definition at line 112 of file BattlegroundVOP.cpp.
|
virtual |
Reimplemented from Battleground.
Definition at line 263 of file BattlegroundVOP.cpp.
References m_FlagKeeper, m_HonorScoreTics, m_HonorTics, m_lastTick, Battleground::m_TeamScores, Battleground::Reset(), TEAM_ALLIANCE, and TEAM_HORDE.
|
virtual |
Reimplemented from Battleground.
Definition at line 185 of file BattlegroundVOP.cpp.
References Battleground::AddCreature(), Battleground::AddObject(), Battleground::AddSpiritGuide(), ALLIANCE, BG_VOP_CREATURE_ORB_AURA_1, BG_VOP_CREATURE_ORB_AURA_2, BG_VOP_CREATURE_ORB_AURA_3, BG_VOP_CREATURE_ORB_AURA_4, BG_VOP_CREATURE_SPIRIT_1, BG_VOP_CREATURE_SPIRIT_2, BG_VOP_OBJECT_BUFF_NORTH, BG_VOP_OBJECT_BUFF_SOUTH, BG_VOP_OBJECT_DOOR_A, BG_VOP_OBJECT_DOOR_ENTRY, BG_VOP_OBJECT_DOOR_H, BG_VOP_OBJECT_ORB_1, BG_VOP_OBJECT_ORB_1_ENTRY, BG_VOP_OBJECT_ORB_2, BG_VOP_OBJECT_ORB_2_ENTRY, BG_VOP_OBJECT_ORB_3, BG_VOP_OBJECT_ORB_3_ENTRY, BG_VOP_OBJECT_ORB_4, BG_VOP_OBJECT_ORB_4_ENTRY, BG_VOP_SPELL_ORB_AURA_1, BG_VOP_SPELL_ORB_AURA_2, BG_VOP_SPELL_ORB_AURA_3, BG_VOP_SPELL_ORB_AURA_4, Buff_Entries, BUFF_RESPAWN_TIME, HORDE, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, SF_LOG_ERROR, TEAM_NEUTRAL, and WORLD_TRIGGER.
|
virtual |
Reimplemented from Battleground.
Definition at line 94 of file BattlegroundVOP.cpp.
References BG_VOP_OBJECT_DOOR_A, BG_VOP_OBJECT_DOOR_H, Battleground::DoorClose(), RESPAWN_IMMEDIATELY, and Battleground::SpawnBGObject().
|
virtual |
Reimplemented from Battleground.
Definition at line 103 of file BattlegroundVOP.cpp.
References BG_VOP_OBJECT_DOOR_A, BG_VOP_OBJECT_DOOR_H, BG_VOP_OBJECT_MAX, BG_VOP_OBJECT_ORB_1, Battleground::DoorOpen(), RESPAWN_IMMEDIATELY, and Battleground::SpawnBGObject().
|
virtual |
Reimplemented from Battleground.
Definition at line 344 of file BattlegroundVOP.cpp.
References Object::GetGUID(), Battleground::PlayerScores, SCORE_ORB_CONTROL, SCORE_ORB_SCORE, and Battleground::UpdatePlayerScore().
Referenced by EventPlayerClickedOnFlag(), HandleKillPlayer(), and PostUpdateImpl().
| void BattlegroundVOP::UpdateTeamScore | ( | uint32 | Team | ) |
Definition at line 114 of file BattlegroundVOP.cpp.
References ALLIANCE, BG_VOP_MAX_TEAM_SCORE, BG_VOP_OP_RESOURCES_A, BG_VOP_OP_RESOURCES_H, EndBattleground(), Battleground::GetTeamScore(), HORDE, TEAM_ALLIANCE, and Battleground::UpdateWorldState().
|
private |
Definition at line 105 of file BattlegroundVOP.h.
Referenced by EventPlayerClickedOnFlag(), HandleKillPlayer(), and Reset().
|
private |
Definition at line 106 of file BattlegroundVOP.h.
Referenced by PostUpdateImpl(), and Reset().
|
private |
Definition at line 107 of file BattlegroundVOP.h.
Referenced by PostUpdateImpl(), and Reset().
|
private |
Definition at line 108 of file BattlegroundVOP.h.
Referenced by PostUpdateImpl(), and Reset().
|
private |
Definition at line 109 of file BattlegroundVOP.h.
Referenced by PostUpdateImpl().