|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BattlegroundAV.h>
Private Attributes | |
| bool | m_CaptainAlive [2] = { } |
| uint32 | m_CaptainBuffTimer [2] = { } |
| bool | m_IsInformedNearVictory [2] = { } |
| uint8 | m_MaxLevel |
| uint32 | m_Mine_Owner [2] = { } |
| uint32 | m_Mine_PrevOwner [2] = { } |
| uint32 | m_Mine_Reclaim_Timer [2] = { } |
| int32 | m_Mine_Timer |
| BG_AV_NodeInfo | m_Nodes [BG_AV_NODES_MAX] = { } |
| uint32 | m_Team_QuestStatus [2][9] = { } |
| int32 | m_Team_Scores [2] = { } |
Definition at line 1528 of file BattlegroundAV.h.
| BattlegroundAV::BattlegroundAV | ( | ) |
Definition at line 18 of file BattlegroundAV.cpp.
References AV_CPLACE_MAX, AV_STATICCPLACE_MAX, BG_AV_OBJECT_MAX, BG_STARTING_EVENT_FIRST, BG_STARTING_EVENT_FOURTH, BG_STARTING_EVENT_SECOND, BG_STARTING_EVENT_THIRD, Battleground::BgCreatures, Battleground::BgObjects, LANG_BG_AV_HAS_BEGUN, LANG_BG_AV_START_HALF_MINUTE, LANG_BG_AV_START_ONE_MINUTE, LANG_BG_AV_START_TWO_MINUTES, m_MaxLevel, m_Mine_Timer, and Battleground::StartMessageIds.
| BattlegroundAV::~BattlegroundAV | ( | ) |
Definition at line 29 of file BattlegroundAV.cpp.
Definition at line 248 of file BattlegroundAV.cpp.
References Battleground::AddCreature(), ASSERT, AV_CPLACE_MAX, AV_CPLACE_TRIGGER16, AV_CPLACE_TRIGGER17, AV_CPLACE_TRIGGER18, AV_CPLACE_TRIGGER19, AV_NPC_A_BOSS, AV_NPC_A_CAPTAIN, AV_NPC_A_GRAVEDEFENSE0, AV_NPC_A_GRAVEDEFENSE3, AV_NPC_H_BOSS, AV_NPC_H_CAPTAIN, AV_NPC_H_GRAVEDEFENSE0, AV_NPC_H_GRAVEDEFENSE3, AV_STATICCPLACE_MAX, BG_AV_CreatureInfo, BG_AV_CreaturePos, BG_AV_StaticCreatureInfo, BG_AV_StaticCreaturePos, Creature::GetDBTableGUIDLow(), Object::GetEntry(), Unit::GetMotionMaster(), MotionMaster::Initialize(), isStatic(), JUST_DIED, m_MaxLevel, Creature::Respawn(), RESPAWN_ONE_DAY, Creature::setDeathState(), Unit::SetLevel(), Creature::SetRespawnDelay(), sObjectMgr, CreatureData::spawndist, SPELL_HONORABLE_DEFENDER_25Y, and WORLD_TRIGGER.
Referenced by ChangeMineOwner(), PopulateNode(), and SetupBattleground().
|
virtual |
Reimplemented from Battleground.
Definition at line 438 of file BattlegroundAV.cpp.
References Battleground::AddPlayer(), Object::GetGUID(), Unit::getLevel(), m_MaxLevel, and Battleground::PlayerScores.
|
private |
Definition at line 1520 of file BattlegroundAV.cpp.
References ASSERT, BG_AV_CAPTIME, BG_AV_SNOWFALL_FIRSTCAP, m_Nodes, POINT_ASSAULTED, POINT_DESTROYED, and SF_LOG_FATAL.
Referenced by EventPlayerAssaultsPoint().
Reimplemented from Battleground.
Definition at line 723 of file BattlegroundAV.cpp.
References AV_NORTH_MINE, AV_SOUTH_MINE, BG_AV_OBJECTID_MINE_N, BG_AV_OBJECTID_MINE_S, and m_Mine_Owner.
Definition at line 634 of file BattlegroundAV.cpp.
References AddAVCreature(), ALLIANCE, ASSERT, AV_CPLACE_HERALD, AV_CPLACE_MINE_N_1_MAX, AV_CPLACE_MINE_N_1_MIN, AV_CPLACE_MINE_N_2_MAX, AV_CPLACE_MINE_N_2_MIN, AV_CPLACE_MINE_N_3, AV_CPLACE_MINE_S_1_MAX, AV_CPLACE_MINE_S_1_MIN, AV_CPLACE_MINE_S_2_MAX, AV_CPLACE_MINE_S_2_MIN, AV_CPLACE_MINE_S_3, AV_CPLACE_MINE_S_S_MAX, AV_CPLACE_MINE_S_S_MIN, AV_MINE_RECLAIM_TIMER, AV_NEUTRAL_TEAM, AV_NORTH_MINE, AV_NPC_N_MINE_A_1, AV_NPC_N_MINE_H_1, AV_NPC_N_MINE_N_1, AV_NPC_S_MINE_A_1, AV_NPC_S_MINE_A_3, AV_NPC_S_MINE_H_1, AV_NPC_S_MINE_H_3, AV_NPC_S_MINE_N_1, AV_NPC_S_MINE_N_S, AV_SOUND_ALLIANCE_GOOD, AV_SOUND_HORDE_GOOD, AV_SOUTH_MINE, Battleground::BgCreatures, Battleground::DelCreature(), Battleground::GetBGCreature(), Battleground::GetSkyFireString(), HORDE, LANG_BG_AV_ALLY, LANG_BG_AV_HORDE, LANG_BG_AV_MINE_NORTH, LANG_BG_AV_MINE_SOUTH, LANG_BG_AV_MINE_TAKEN, LANG_BG_AV_S_MINE_BOSS_CLAIMS, LANG_UNIVERSAL, m_Mine_Owner, m_Mine_PrevOwner, m_Mine_Reclaim_Timer, Battleground::PlaySoundToAll(), SendMineWorldStates(), SF_LOG_DEBUG, and Battleground::YellToAll().
Referenced by HandleKillUnit(), PostUpdateImpl(), and StartingEventOpenDoors().
|
virtual |
Reimplemented from Battleground.
Definition at line 1617 of file BattlegroundAV.cpp.
References ALLIANCE, BG_AV_NODES_DUNBALDAR_SOUTH, BG_AV_NODES_FROSTWOLF_WTOWER, BG_AV_NODES_ICEBLOOD_TOWER, BG_AV_NODES_STONEHEART_BUNKER, BG_CRITERIA_CHECK_AV_PERFECTION, BG_CRITERIA_CHECK_EVERYTHING_COUNTS, Battleground::CheckAchievementCriteriaMeet(), Player::GetTeam(), HORDE, m_CaptainAlive, m_Mine_Owner, m_Nodes, POINT_CONTROLED, and POINT_DESTROYED.
|
private |
Definition at line 1573 of file BattlegroundAV.cpp.
References ASSERT, m_Nodes, POINT_CONTROLED, and POINT_DESTROYED.
Referenced by EventPlayerDefendsPoint().
|
private |
Definition at line 789 of file BattlegroundAV.cpp.
References AV_CPLACE_DEFENSE_STORM_AID, BG_AV_NODES_MAX, Battleground::BgCreatures, Battleground::DelCreature(), and IsTower().
Referenced by EventPlayerAssaultsPoint(), and HandleQuestComplete().
|
private |
Definition at line 1550 of file BattlegroundAV.cpp.
References ASSERT, m_Nodes, POINT_ASSAULTED, POINT_CONTROLED, and POINT_DESTROYED.
Referenced by EventPlayerDestroyedPoint().
| void BattlegroundAV::EndBattleground | ( | uint32 | winner | ) |
Definition at line 448 of file BattlegroundAV.cpp.
References ALLIANCE, BG_AV_KILL_SURVIVING_CAPTAIN, BG_AV_KILL_SURVIVING_TOWER, BG_AV_NODES_DUNBALDAR_SOUTH, BG_AV_NODES_FROSTWOLF_WTOWER, BG_AV_REP_SURVIVING_CAPTAIN, BG_AV_REP_SURVIVING_TOWER, Battleground::EndBattleground(), GetBonusHonor(), HORDE, m_CaptainAlive, m_Nodes, POINT_CONTROLED, Battleground::RewardHonorToTeam(), Battleground::RewardReputationToTeam(), TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by HandleKillUnit(), and UpdateScore().
Definition at line 966 of file BattlegroundAV.cpp.
References ALLIANCE, AssaultNode(), ASSERT, AV_CPLACE_HERALD, AV_NEUTRAL_TEAM, AV_SOUND_ALLIANCE_ASSAULTS, AV_SOUND_HORDE_ASSAULTS, BG_AV_NODES_DUNBALDAR_SOUTH, BG_AV_NODES_SNOWFALL_GRAVE, BG_AV_OBJECT_AURA_A_FIRSTAID_STATION, BG_AV_OBJECT_AURA_N_FIRSTAID_STATION, BG_AV_OBJECT_FLAG_C_A_SNOWFALL_GRAVE, BG_AV_OBJECT_FLAG_C_H_SNOWFALL_GRAVE, BG_AV_OBJECT_FLAG_N_SNOWFALL_GRAVE, BG_AV_OBJECT_SNOW_EYECANDY_A, BG_AV_OBJECT_SNOW_EYECANDY_H, BG_AV_OBJECT_SNOW_EYECANDY_PA, BG_AV_OBJECT_SNOW_EYECANDY_PH, BG_AV_OBJECT_TAURA_A_DUNBALDAR_SOUTH, BG_AV_OBJECT_TAURA_H_DUNBALDAR_SOUTH, BG_AV_OBJECT_TFLAG_A_DUNBALDAR_SOUTH, BG_AV_OBJECT_TFLAG_H_DUNBALDAR_SOUTH, Battleground::BgCreatures, DePopulateNode(), Battleground::GetBGCreature(), GetNodeName(), GetNodeThroughObject(), Battleground::GetSkyFireString(), Battleground::GetStatus(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), HORDE, IsTower(), LANG_BG_AV_ALLY, LANG_BG_AV_GRAVE_ASSAULTED, LANG_BG_AV_HORDE, LANG_BG_AV_TOWER_ASSAULTED, LANG_UNIVERSAL, m_Nodes, Battleground::PlaySoundToAll(), POINT_ASSAULTED, POINT_CONTROLED, Battleground::RelocateDeadPlayers(), RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, SCORE_GRAVEYARDS_ASSAULTED, SCORE_TOWERS_ASSAULTED, SF_LOG_DEBUG, Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, UpdateNodeWorldState(), UpdatePlayerScore(), and Battleground::YellToAll().
Referenced by EventPlayerClickedOnFlag(), and EventPlayerDefendsPoint().
|
virtual |
Reimplemented from Battleground.
Definition at line 866 of file BattlegroundAV.cpp.
References BG_AV_OBJECTID_BANNER_A, BG_AV_OBJECTID_BANNER_A_B, BG_AV_OBJECTID_BANNER_CONT_A, BG_AV_OBJECTID_BANNER_CONT_A_B, BG_AV_OBJECTID_BANNER_CONT_H, BG_AV_OBJECTID_BANNER_CONT_H_B, BG_AV_OBJECTID_BANNER_H, BG_AV_OBJECTID_BANNER_H_B, BG_AV_OBJECTID_BANNER_SNOWFALL_N, EventPlayerAssaultsPoint(), EventPlayerDefendsPoint(), Object::GetEntry(), Object::GetGUID(), Battleground::GetObjectType(), Battleground::GetStatus(), SF_LOG_DEBUG, and STATUS_IN_PROGRESS.
Definition at line 894 of file BattlegroundAV.cpp.
References ALLIANCE, ASSERT, AV_CPLACE_HERALD, AV_NEUTRAL_TEAM, AV_SOUND_ALLIANCE_GOOD, AV_SOUND_BOTH_TOWER_DEFEND, AV_SOUND_HORDE_GOOD, BG_AV_NODES_DUNBALDAR_SOUTH, BG_AV_NODES_SNOWFALL_GRAVE, BG_AV_OBJECT_AURA_A_FIRSTAID_STATION, BG_AV_OBJECT_AURA_N_FIRSTAID_STATION, BG_AV_OBJECT_SNOW_EYECANDY_A, BG_AV_OBJECT_SNOW_EYECANDY_H, BG_AV_OBJECT_SNOW_EYECANDY_PA, BG_AV_OBJECT_SNOW_EYECANDY_PH, BG_AV_OBJECT_TAURA_A_DUNBALDAR_SOUTH, BG_AV_OBJECT_TAURA_H_DUNBALDAR_SOUTH, BG_AV_OBJECT_TFLAG_A_DUNBALDAR_SOUTH, BG_AV_OBJECT_TFLAG_H_DUNBALDAR_SOUTH, DefendNode(), EventPlayerAssaultsPoint(), Battleground::GetBGCreature(), GetNodeName(), GetNodeThroughObject(), Battleground::GetSkyFireString(), Battleground::GetStatus(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), HORDE, IsTower(), LANG_BG_AV_ALLY, LANG_BG_AV_GRAVE_DEFENDED, LANG_BG_AV_HORDE, LANG_BG_AV_TOWER_DEFENDED, LANG_UNIVERSAL, m_Nodes, Battleground::PlaySoundToAll(), POINT_ASSAULTED, PopulateNode(), RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, SCORE_GRAVEYARDS_DEFENDED, SCORE_TOWERS_DEFENDED, SF_LOG_DEBUG, SF_LOG_ERROR, Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, UpdateNodeWorldState(), UpdatePlayerScore(), and Battleground::YellToAll().
Referenced by EventPlayerClickedOnFlag().
|
private |
Definition at line 574 of file BattlegroundAV.cpp.
References ALLIANCE, AV_CPLACE_A_MARSHAL_SOUTH, AV_CPLACE_HERALD, BG_AV_KILL_TOWER, BG_AV_NODES_DUNBALDAR_SOUTH, BG_AV_NODES_SNOWFALL_GRAVE, BG_AV_OBJECT_AURA_A_FIRSTAID_STATION, BG_AV_OBJECT_AURA_N_FIRSTAID_STATION, BG_AV_OBJECT_BURN_DUNBALDAR_SOUTH, BG_AV_OBJECT_SNOW_EYECANDY_A, BG_AV_OBJECT_SNOW_EYECANDY_H, BG_AV_OBJECT_SNOW_EYECANDY_PA, BG_AV_OBJECT_SNOW_EYECANDY_PH, BG_AV_OBJECT_TAURA_A_DUNBALDAR_SOUTH, BG_AV_OBJECT_TFLAG_A_DUNBALDAR_SOUTH, BG_AV_REP_TOWER, BG_AV_RES_TOWER, Battleground::BgCreatures, Battleground::DelCreature(), DestroyNode(), Battleground::GetBGCreature(), GetBonusHonor(), GetNodeName(), GetObjectThroughNode(), Battleground::GetSkyFireString(), Battleground::GetTeamIndexByTeamId(), HORDE, IsTower(), LANG_BG_AV_ALLY, LANG_BG_AV_GRAVE_TAKEN, LANG_BG_AV_HORDE, LANG_BG_AV_TOWER_TAKEN, LANG_UNIVERSAL, m_Nodes, PopulateNode(), RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, Battleground::RewardHonorToTeam(), Battleground::RewardReputationToTeam(), SF_LOG_DEBUG, SF_LOG_ERROR, Battleground::SpawnBGObject(), UpdateNodeWorldState(), UpdateScore(), and Battleground::YellToAll().
Referenced by PostUpdateImpl().
|
privatevirtual |
Reimplemented from Battleground.
Definition at line 1061 of file BattlegroundAV.cpp.
References ALLIANCE, WorldStateBuilder::AppendState(), AV_Alliance_Score, AV_Horde_Score, AV_NEUTRAL_TEAM, AV_NORTH_MINE, AV_SHOW_A_SCORE, AV_SHOW_H_SCORE, AV_SNOWFALL_N, AV_SOUTH_MINE, BG_AV_NODES_DUNBALDAR_SOUTH, BG_AV_NODES_FIRSTAID_STATION, BG_AV_NODES_FROSTWOLF_HUT, BG_AV_NODES_MAX, BG_AV_NODES_SNOWFALL_GRAVE, BG_AV_NodeWorldStates, Battleground::GetStatus(), GetWorldStateType(), HORDE, m_Nodes, m_Team_Scores, POINT_DESTROYED, SendMineWorldStates(), and STATUS_IN_PROGRESS.
Definition at line 31 of file BattlegroundAV.cpp.
References Skyfire::Honor::hk_honor_at_level(), and m_MaxLevel.
Referenced by EndBattleground(), EventPlayerDestroyedPoint(), and HandleKillUnit().
|
virtual |
Reimplemented from Battleground.
Definition at line 1166 of file BattlegroundAV.cpp.
References BG_AV_GraveyardIds, BG_AV_NODES_FIRSTAID_STATION, BG_AV_NODES_FROSTWOLF_HUT, Position::GetPosition(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), m_Nodes, POINT_CONTROLED, sWorldSafeLocsStore, WorldSafeLocsEntry::x, and WorldSafeLocsEntry::y.
|
private |
Definition at line 1493 of file BattlegroundAV.cpp.
References BG_AV_NODES_DUNBALDAR_NORTH, BG_AV_NODES_DUNBALDAR_SOUTH, BG_AV_NODES_FIRSTAID_STATION, BG_AV_NODES_FROSTWOLF_ETOWER, BG_AV_NODES_FROSTWOLF_GRAVE, BG_AV_NODES_FROSTWOLF_HUT, BG_AV_NODES_FROSTWOLF_WTOWER, BG_AV_NODES_ICEBLOOD_GRAVE, BG_AV_NODES_ICEBLOOD_TOWER, BG_AV_NODES_ICEWING_BUNKER, BG_AV_NODES_SNOWFALL_GRAVE, BG_AV_NODES_STONEHEART_BUNKER, BG_AV_NODES_STONEHEART_GRAVE, BG_AV_NODES_STORMPIKE_GRAVE, BG_AV_NODES_TOWER_POINT, Battleground::GetSkyFireString(), LANG_BG_AV_NODE_GRAVE_FROST, LANG_BG_AV_NODE_GRAVE_FROST_HUT, LANG_BG_AV_NODE_GRAVE_ICE, LANG_BG_AV_NODE_GRAVE_SNOW, LANG_BG_AV_NODE_GRAVE_STONE, LANG_BG_AV_NODE_GRAVE_STORM_AID, LANG_BG_AV_NODE_GRAVE_STORMPIKE, LANG_BG_AV_NODE_TOWER_DUN_N, LANG_BG_AV_NODE_TOWER_DUN_S, LANG_BG_AV_NODE_TOWER_FROST_E, LANG_BG_AV_NODE_TOWER_FROST_W, LANG_BG_AV_NODE_TOWER_ICE, LANG_BG_AV_NODE_TOWER_ICEWING, LANG_BG_AV_NODE_TOWER_POINT, LANG_BG_AV_NODE_TOWER_STONE, and SF_LOG_ERROR.
Referenced by EventPlayerAssaultsPoint(), EventPlayerDefendsPoint(), and EventPlayerDestroyedPoint().
|
private |
Definition at line 804 of file BattlegroundAV.cpp.
References ASSERT, BG_AV_NODES_SNOWFALL_GRAVE, BG_AV_OBJECT_FLAG_A_STONEHEART_BUNKER, BG_AV_OBJECT_FLAG_C_A_FROSTWOLF_HUT, BG_AV_OBJECT_FLAG_C_A_FROSTWOLF_WTOWER, BG_AV_OBJECT_FLAG_C_H_STONEHEART_BUNKER, BG_AV_OBJECT_FLAG_H_FROSTWOLF_HUT, BG_AV_OBJECT_FLAG_H_FROSTWOLF_WTOWER, BG_AV_OBJECT_FLAG_N_SNOWFALL_GRAVE, SF_LOG_DEBUG, and SF_LOG_ERROR.
Referenced by EventPlayerAssaultsPoint(), EventPlayerDefendsPoint(), and SetupBattleground().
|
private |
Definition at line 826 of file BattlegroundAV.cpp.
References ALLIANCE, ASSERT, AV_NEUTRAL_TEAM, BG_AV_NODES_FROSTWOLF_HUT, BG_AV_NODES_FROSTWOLF_WTOWER, BG_AV_NODES_ICEBLOOD_TOWER, BG_AV_NODES_STONEHEART_BUNKER, BG_AV_OBJECT_FLAG_N_SNOWFALL_GRAVE, HORDE, m_Nodes, POINT_ASSAULTED, POINT_CONTROLED, SF_LOG_DEBUG, and SF_LOG_ERROR.
Referenced by EventPlayerDestroyedPoint().
|
virtual |
Reimplemented from Battleground.
Definition at line 1680 of file BattlegroundAV.cpp.
References ALLIANCE, Battleground::GetPrematureWinner(), Battleground::GetTeamIndexByTeamId(), HORDE, and m_Team_Scores.
Definition at line 1107 of file BattlegroundAV.cpp.
References ALLIANCE, ASSERT, AV_NEUTRAL_TEAM, HORDE, POINT_ASSAULTED, POINT_CONTROLED, POINT_DESTROYED, and SF_LOG_ERROR.
Referenced by FillInitialWorldStates(), and UpdateNodeWorldState().
Reimplemented from Battleground.
Definition at line 501 of file BattlegroundAV.cpp.
References ALLIANCE, Player::GetSession(), Battleground::GetStatus(), Player::GetTeam(), Battleground::HandleAreaTrigger(), HORDE, Player::LeaveBattleground(), WorldSession::SendNotification(), and STATUS_IN_PROGRESS.
Reimplemented from Battleground.
Definition at line 36 of file BattlegroundAV.cpp.
References Battleground::GetStatus(), Player::GetTeam(), Battleground::HandleKillPlayer(), STATUS_IN_PROGRESS, and UpdateScore().
Reimplemented from Battleground.
Definition at line 45 of file BattlegroundAV.cpp.
References ALLIANCE, AV_CPLACE_HERALD, AV_CPLACE_TRIGGER16, AV_CPLACE_TRIGGER17, AV_CPLACE_TRIGGER18, AV_CPLACE_TRIGGER19, AV_NORTH_MINE, AV_NPC_A_BOSS, AV_NPC_A_CAPTAIN, AV_NPC_H_BOSS, AV_NPC_H_CAPTAIN, AV_NPC_N_MINE_A_4, AV_NPC_N_MINE_H_4, AV_NPC_N_MINE_N_4, AV_NPC_S_MINE_A_4, AV_NPC_S_MINE_H_4, AV_NPC_S_MINE_N_4, AV_SOUTH_MINE, BG_AV_CreatureInfo, BG_AV_KILL_BOSS, BG_AV_KILL_CAPTAIN, BG_AV_OBJECT_BURN_BUILDING_ALLIANCE, BG_AV_OBJECT_BURN_BUILDING_HORDE, BG_AV_REP_BOSS, BG_AV_REP_CAPTAIN, BG_AV_RES_CAPTAIN, Battleground::CastSpellOnTeam(), ChangeMineOwner(), Battleground::DelCreature(), EndBattleground(), Battleground::GetBGCreature(), GetBonusHonor(), Object::GetEntry(), Battleground::GetSkyFireString(), Battleground::GetStatus(), Player::GetTeam(), HORDE, LANG_BG_AV_A_CAPTAIN_DEAD, LANG_BG_AV_H_CAPTAIN_DEAD, LANG_UNIVERSAL, m_CaptainAlive, RESPAWN_IMMEDIATELY, Battleground::RewardHonorToTeam(), Battleground::RewardReputationToTeam(), SF_LOG_DEBUG, SF_LOG_ERROR, Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, UpdateScore(), and Battleground::YellToAll().
Reimplemented from Battleground.
Definition at line 122 of file BattlegroundAV.cpp.
References AV_QUEST_A_BOSS1, AV_QUEST_A_BOSS2, AV_QUEST_A_COMMANDER1, AV_QUEST_A_COMMANDER2, AV_QUEST_A_COMMANDER3, AV_QUEST_A_NEAR_MINE, AV_QUEST_A_OTHER_MINE, AV_QUEST_A_RIDER_HIDE, AV_QUEST_A_RIDER_TAME, AV_QUEST_A_SCRAPS1, AV_QUEST_A_SCRAPS2, AV_QUEST_H_BOSS1, AV_QUEST_H_BOSS2, AV_QUEST_H_COMMANDER1, AV_QUEST_H_COMMANDER2, AV_QUEST_H_COMMANDER3, AV_QUEST_H_NEAR_MINE, AV_QUEST_H_OTHER_MINE, AV_QUEST_H_RIDER_HIDE, AV_QUEST_H_RIDER_TAME, AV_QUEST_H_SCRAPS1, AV_QUEST_H_SCRAPS2, BG_AV_NODES_FIRSTAID_STATION, BG_AV_NODES_FROSTWOLF_HUT, DePopulateNode(), Battleground::GetStatus(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), m_Nodes, m_Team_QuestStatus, POINT_CONTROLED, PopulateNode(), Battleground::RewardReputationToTeam(), SF_LOG_DEBUG, and STATUS_IN_PROGRESS.
|
private |
Definition at line 1561 of file BattlegroundAV.cpp.
References m_Nodes, and POINT_CONTROLED.
Referenced by ResetBGSubclass().
|
inlineprivate |
Definition at line 1583 of file BattlegroundAV.h.
References m_Nodes.
Referenced by DePopulateNode(), EventPlayerAssaultsPoint(), EventPlayerDefendsPoint(), EventPlayerDestroyedPoint(), and PopulateNode().
|
private |
Definition at line 732 of file BattlegroundAV.cpp.
References AddAVCreature(), Battleground::AddCreature(), Battleground::AddSpiritGuide(), ALLIANCE, ASSERT, AV_CPLACE_DEFENSE_STORM_AID, AV_NPC_A_GRAVEDEFENSE0, AV_NPC_A_GRAVEDEFENSE1, AV_NPC_A_GRAVEDEFENSE2, AV_NPC_A_GRAVEDEFENSE3, AV_NPC_A_TOWERDEFENSE, AV_NPC_H_GRAVEDEFENSE0, AV_NPC_H_GRAVEDEFENSE1, AV_NPC_H_GRAVEDEFENSE2, AV_NPC_H_GRAVEDEFENSE3, AV_NPC_H_TOWERDEFENSE, BG_AV_CreaturePos, BG_AV_NODES_MAX, Battleground::BgCreatures, Unit::CastSpell(), Battleground::DelCreature(), Battleground::GetBGCreature(), Battleground::GetTeamIndexByTeamId(), HORDE, IsTower(), m_Nodes, m_Team_QuestStatus, Unit::setFaction(), SF_LOG_ERROR, SPELL_HONORABLE_DEFENDER_25Y, and WORLD_TRIGGER.
Referenced by EventPlayerDefendsPoint(), EventPlayerDestroyedPoint(), HandleQuestComplete(), and SetupBattleground().
|
privatevirtual |
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 350 of file BattlegroundAV.cpp.
References ALLIANCE, AV_BUFF_A_CAPTAIN, AV_BUFF_H_CAPTAIN, AV_CPLACE_MAX, AV_MINE_TICK_TIMER, AV_NEUTRAL_TEAM, BG_AV_NODES_FIRSTAID_STATION, BG_AV_NODES_MAX, Battleground::CastSpellOnTeam(), ChangeMineOwner(), EventPlayerDestroyedPoint(), Battleground::GetBGCreature(), Battleground::GetStatus(), HORDE, LANG_BG_AV_A_CAPTAIN_BUFF, LANG_BG_AV_H_CAPTAIN_BUFF, LANG_COMMON, LANG_ORCISH, m_CaptainAlive, m_CaptainBuffTimer, m_Mine_Owner, m_Mine_Reclaim_Timer, m_Mine_Timer, m_Nodes, POINT_ASSAULTED, STATUS_IN_PROGRESS, UpdateScore(), and Battleground::YellToAll().
Reimplemented from Battleground.
Definition at line 488 of file BattlegroundAV.cpp.
References AV_BUFF_A_CAPTAIN, AV_BUFF_ARMOR, AV_BUFF_H_CAPTAIN, Unit::RemoveAurasDueToSpell(), and SF_LOG_ERROR.
|
virtual |
Reimplemented from Battleground.
Definition at line 1585 of file BattlegroundAV.cpp.
References ALLIANCE, AV_CPLACE_MAX, AV_MINE_TICK_TIMER, AV_NEUTRAL_TEAM, AV_STATICCPLACE_MAX, BG_AV_NODES_DUNBALDAR_SOUTH, BG_AV_NODES_FIRSTAID_STATION, BG_AV_NODES_FROSTWOLF_HUT, BG_AV_NODES_FROSTWOLF_WTOWER, BG_AV_NODES_ICEBLOOD_GRAVE, BG_AV_NODES_ICEBLOOD_TOWER, BG_AV_NODES_SNOWFALL_GRAVE, BG_AV_NODES_STONEHEART_BUNKER, BG_AV_NODES_STONEHEART_GRAVE, BG_AV_SCORE_INITIAL_POINTS, Battleground::BgCreatures, Battleground::DelCreature(), HORDE, InitNode(), m_CaptainAlive, m_CaptainBuffTimer, m_IsInformedNearVictory, m_MaxLevel, m_Mine_Owner, m_Mine_PrevOwner, m_Mine_Timer, m_Team_QuestStatus, and m_Team_Scores.
|
private |
Definition at line 1139 of file BattlegroundAV.cpp.
References ALLIANCE, ASSERT, AV_NORTH_MINE, AV_SOUTH_MINE, BG_AV_MineWorldStates, HORDE, m_Mine_Owner, m_Mine_PrevOwner, and Battleground::UpdateWorldState().
Referenced by ChangeMineOwner(), and FillInitialWorldStates().
|
virtual |
Reimplemented from Battleground.
Definition at line 1195 of file BattlegroundAV.cpp.
References AddAVCreature(), Battleground::AddObject(), Battleground::AddSpiritGuide(), ALLIANCE, AV_CPLACE_A_MARSHAL_SOUTH, AV_CPLACE_HERALD, AV_CPLACE_MAX, AV_NPC_A_MARSHAL_SOUTH, AV_NPC_H_MARSHAL_WTOWER, AV_NPC_HERALD, AV_OPLACE_BURN_BUILDING_A, AV_OPLACE_BURN_DUNBALDAR_SOUTH, AV_OPLACE_MINE_SUPPLY_N_MIN, AV_OPLACE_MINE_SUPPLY_S_MIN, AV_OPLACE_SNOW_1, AV_STATICCPLACE_MAX, BG_AV_CreaturePos, BG_AV_DoorPositons, BG_AV_NODES_DUNBALDAR_SOUTH, BG_AV_NODES_FIRSTAID_STATION, BG_AV_NODES_FROSTWOLF_HUT, BG_AV_NODES_MAX, BG_AV_NODES_SNOWFALL_GRAVE, BG_AV_NODES_STONEHEART_BUNKER, BG_AV_OBJECT_AURA_A_FIRSTAID_STATION, BG_AV_OBJECT_AURA_H_FIRSTAID_STATION, BG_AV_OBJECT_AURA_N_FIRSTAID_STATION, BG_AV_OBJECT_AURA_N_SNOWFALL_GRAVE, BG_AV_OBJECT_BURN_BUILDING_ALLIANCE, BG_AV_OBJECT_BURN_DUNBALDAR_SOUTH, BG_AV_OBJECT_DOOR_A, BG_AV_OBJECT_DOOR_H, BG_AV_OBJECT_FLAG_A_DUNBALDAR_SOUTH, BG_AV_OBJECT_FLAG_A_FIRSTAID_STATION, BG_AV_OBJECT_FLAG_A_STONEHEART_BUNKER, BG_AV_OBJECT_FLAG_A_STONEHEART_GRAVE, BG_AV_OBJECT_FLAG_H_FROSTWOLF_HUT, BG_AV_OBJECT_FLAG_H_FROSTWOLF_WTOWER, BG_AV_OBJECT_FLAG_H_ICEBLOOD_GRAVE, BG_AV_OBJECT_FLAG_N_SNOWFALL_GRAVE, BG_AV_OBJECT_MAX, BG_AV_OBJECT_MINE_SUPPLY_N_MAX, BG_AV_OBJECT_MINE_SUPPLY_N_MIN, BG_AV_OBJECT_MINE_SUPPLY_S_MAX, BG_AV_OBJECT_MINE_SUPPLY_S_MIN, BG_AV_OBJECT_SNOW_EYECANDY_A, BG_AV_OBJECT_SNOW_EYECANDY_H, BG_AV_OBJECT_SNOW_EYECANDY_PA, BG_AV_OBJECT_SNOW_EYECANDY_PH, BG_AV_OBJECT_TAURA_A_DUNBALDAR_SOUTH, BG_AV_OBJECT_TAURA_H_DUNBALDAR_SOUTH, BG_AV_OBJECT_TFLAG_A_DUNBALDAR_SOUTH, BG_AV_OBJECT_TFLAG_A_STONEHEART_BUNKER, BG_AV_OBJECT_TFLAG_H_DUNBALDAR_SOUTH, BG_AV_OBJECT_TFLAG_H_FROSTWOLF_WTOWER, BG_AV_OBJECT_TFLAG_H_ICEBLOOD_TOWER, BG_AV_OBJECTID_AURA_A, BG_AV_OBJECTID_AURA_H, BG_AV_OBJECTID_AURA_N, BG_AV_OBJECTID_BANNER_A, BG_AV_OBJECTID_BANNER_A_B, BG_AV_OBJECTID_BANNER_CONT_A, BG_AV_OBJECTID_BANNER_CONT_A_B, BG_AV_OBJECTID_BANNER_CONT_H, BG_AV_OBJECTID_BANNER_CONT_H_B, BG_AV_OBJECTID_BANNER_H, BG_AV_OBJECTID_BANNER_H_B, BG_AV_OBJECTID_BANNER_SNOWFALL_N, BG_AV_OBJECTID_FIRE, BG_AV_OBJECTID_GATE_A, BG_AV_OBJECTID_GATE_H, BG_AV_OBJECTID_MINE_N, BG_AV_OBJECTID_MINE_S, BG_AV_OBJECTID_SMOKE, BG_AV_OBJECTID_SNOWFALL_CANDY_A, BG_AV_OBJECTID_SNOWFALL_CANDY_H, BG_AV_OBJECTID_SNOWFALL_CANDY_PA, BG_AV_OBJECTID_SNOWFALL_CANDY_PH, BG_AV_OBJECTID_TOWER_BANNER_A, BG_AV_OBJECTID_TOWER_BANNER_H, BG_AV_OBJECTID_TOWER_BANNER_PA, BG_AV_OBJECTID_TOWER_BANNER_PH, BG_AV_ObjectPos, GetNodeThroughObject(), HORDE, m_Nodes, PopulateNode(), RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, SF_LOG_DEBUG, SF_LOG_ERROR, and Battleground::SpawnBGObject().
|
virtual |
Reimplemented from Battleground.
Definition at line 412 of file BattlegroundAV.cpp.
References BG_AV_OBJECT_DOOR_A, BG_AV_OBJECT_DOOR_H, and Battleground::DoorClose().
|
virtual |
Reimplemented from Battleground.
Definition at line 418 of file BattlegroundAV.cpp.
References ACHIEVEMENT_TIMED_TYPE_EVENT, AV_NEUTRAL_TEAM, AV_NORTH_MINE, AV_SHOW_A_SCORE, AV_SHOW_H_SCORE, AV_SOUTH_MINE, BG_AV_EVENT_START_BATTLE, BG_AV_OBJECT_DOOR_A, BG_AV_OBJECT_DOOR_H, BG_AV_OBJECT_MINE_SUPPLY_N_MAX, BG_AV_OBJECT_MINE_SUPPLY_N_MIN, BG_AV_OBJECT_MINE_SUPPLY_S_MAX, BG_AV_OBJECT_MINE_SUPPLY_S_MIN, ChangeMineOwner(), Battleground::DoorOpen(), RESPAWN_IMMEDIATELY, SF_LOG_DEBUG, Battleground::SpawnBGObject(), Battleground::StartTimedAchievement(), and Battleground::UpdateWorldState().
|
private |
Definition at line 1130 of file BattlegroundAV.cpp.
References AV_NEUTRAL_TEAM, AV_SNOWFALL_N, BG_AV_NodeWorldStates, GetWorldStateType(), m_Nodes, and Battleground::UpdateWorldState().
Referenced by EventPlayerAssaultsPoint(), EventPlayerDefendsPoint(), and EventPlayerDestroyedPoint().
|
virtual |
Reimplemented from Battleground.
Definition at line 535 of file BattlegroundAV.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_BG_OBJECTIVE_CAPTURE, AV_OBJECTIVE_ASSAULT_GRAVEYARD, AV_OBJECTIVE_ASSAULT_TOWER, AV_OBJECTIVE_DEFEND_GRAVEYARD, AV_OBJECTIVE_DEFEND_TOWER, Object::GetGUID(), Battleground::PlayerScores, SCORE_GRAVEYARDS_ASSAULTED, SCORE_GRAVEYARDS_DEFENDED, SCORE_LEADERS_KILLED, SCORE_MINES_CAPTURED, SCORE_SECONDARY_OBJECTIVES, SCORE_TOWERS_ASSAULTED, SCORE_TOWERS_DEFENDED, Player::UpdateAchievementCriteria(), and Battleground::UpdatePlayerScore().
Referenced by EventPlayerAssaultsPoint(), and EventPlayerDefendsPoint().
Definition at line 225 of file BattlegroundAV.cpp.
References ALLIANCE, ASSERT, AV_Alliance_Score, AV_Horde_Score, AV_SOUND_NEAR_VICTORY, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, EndBattleground(), Battleground::GetTeamIndexByTeamId(), HORDE, LANG_BG_AV_A_NEAR_LOSE, LANG_BG_AV_H_NEAR_LOSE, m_IsInformedNearVictory, m_Team_Scores, Battleground::PlaySoundToAll(), SEND_MSG_NEAR_LOSE, Battleground::SendMessageToAll(), TEAM_HORDE, and Battleground::UpdateWorldState().
Referenced by EventPlayerDestroyedPoint(), HandleKillPlayer(), HandleKillUnit(), and PostUpdateImpl().
|
private |
Definition at line 1609 of file BattlegroundAV.h.
Referenced by CheckAchievementCriteriaMeet(), EndBattleground(), HandleKillUnit(), PostUpdateImpl(), and ResetBGSubclass().
|
private |
Definition at line 1608 of file BattlegroundAV.h.
Referenced by PostUpdateImpl(), and ResetBGSubclass().
|
private |
Definition at line 1612 of file BattlegroundAV.h.
Referenced by ResetBGSubclass(), and UpdateScore().
|
private |
Definition at line 1611 of file BattlegroundAV.h.
Referenced by AddAVCreature(), AddPlayer(), BattlegroundAV(), GetBonusHonor(), and ResetBGSubclass().
|
private |
Definition at line 1604 of file BattlegroundAV.h.
Referenced by CanActivateGO(), ChangeMineOwner(), CheckAchievementCriteriaMeet(), PostUpdateImpl(), ResetBGSubclass(), and SendMineWorldStates().
|
private |
Definition at line 1605 of file BattlegroundAV.h.
Referenced by ChangeMineOwner(), ResetBGSubclass(), and SendMineWorldStates().
|
private |
Definition at line 1607 of file BattlegroundAV.h.
Referenced by ChangeMineOwner(), and PostUpdateImpl().
|
private |
Definition at line 1606 of file BattlegroundAV.h.
Referenced by BattlegroundAV(), PostUpdateImpl(), and ResetBGSubclass().
|
private |
Definition at line 1602 of file BattlegroundAV.h.
Referenced by AssaultNode(), CheckAchievementCriteriaMeet(), DefendNode(), DestroyNode(), EndBattleground(), EventPlayerAssaultsPoint(), EventPlayerDefendsPoint(), EventPlayerDestroyedPoint(), FillInitialWorldStates(), GetClosestGraveYard(), GetObjectThroughNode(), HandleQuestComplete(), InitNode(), IsTower(), PopulateNode(), PostUpdateImpl(), SetupBattleground(), and UpdateNodeWorldState().
|
private |
Definition at line 1600 of file BattlegroundAV.h.
Referenced by HandleQuestComplete(), PopulateNode(), and ResetBGSubclass().
|
private |
Definition at line 1599 of file BattlegroundAV.h.
Referenced by FillInitialWorldStates(), GetPrematureWinner(), ResetBGSubclass(), and UpdateScore().