![]() |
TrinityCore
|
#include <BattlegroundAV.h>
Inheritance diagram for BattlegroundAV:Private Attributes | |
| int32 | m_Team_Scores [2] |
| uint32 | m_Team_QuestStatus [2][9] |
| BG_AV_NodeInfo | m_Nodes [BG_AV_NODES_MAX] |
| uint32 | m_Mine_Owner [2] |
| uint32 | m_Mine_PrevOwner [2] |
| int32 | m_Mine_Timer |
| uint32 | m_Mine_Reclaim_Timer [2] |
| uint32 | m_CaptainBuffTimer [2] |
| bool | m_CaptainAlive [2] |
| bool | m_IsInformedNearVictory [2] |
Definition at line 1615 of file BattlegroundAV.h.
| BattlegroundAV::BattlegroundAV | ( | ) |
Definition at line 36 of file BattlegroundAV.cpp.
References AsUnderlyingType(), AV_CPLACE_MAX, AV_STATICCPLACE_MAX, BG_AV_NODES_FIRSTAID_STATION, BG_AV_NODES_MAX, BG_AV_OBJECT_MAX, BG_AV_TEXT_BATTLE_HAS_BEGUN, BG_AV_TEXT_START_HALF_MINUTE, BG_AV_TEXT_START_ONE_MINUTE, BG_STARTING_EVENT_FOURTH, BG_STARTING_EVENT_SECOND, BG_STARTING_EVENT_THIRD, Battleground::BgCreatures, Battleground::BgObjects, InitNode(), m_CaptainAlive, m_CaptainBuffTimer, m_IsInformedNearVictory, m_Mine_Owner, m_Mine_PrevOwner, m_Mine_Reclaim_Timer, m_Mine_Timer, m_Team_QuestStatus, m_Team_Scores, and Battleground::StartMessageIds.
| BattlegroundAV::~BattlegroundAV | ( | ) |
Definition at line 64 of file BattlegroundAV.cpp.
Definition at line 282 of file BattlegroundAV.cpp.
References Battleground::AddCreature(), ASSERT, AsUnderlyingType(), 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_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, Object::GetEntry(), Unit::GetMotionMaster(), Creature::GetSpawnId(), MotionMaster::Initialize(), JUST_DIED, Creature::Respawn(), RESPAWN_ONE_DAY, Creature::setDeathState(), Creature::SetRespawnDelay(), sObjectMgr, SpawnMetadata::spawnGroupData, CreatureData::wander_distance, and WORLD_TRIGGER.
Referenced by ChangeMineOwner(), PopulateNode(), and SetupBattleground().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 442 of file BattlegroundAV.cpp.
References Battleground::AddPlayer(), Object::GetGUID(), Battleground::IsPlayerInBattleground(), and Battleground::PlayerScores.
|
private |
Definition at line 1408 of file BattlegroundAV.cpp.
References ABORT, BG_AV_CAPTIME, BG_AV_SNOWFALL_FIRSTCAP, m_Nodes, BG_AV_NodeInfo::Owner, POINT_ASSAULTED, POINT_DESTROYED, BG_AV_NodeInfo::PrevOwner, BG_AV_NodeInfo::PrevState, BG_AV_NodeInfo::State, TC_LOG_FATAL, and BG_AV_NodeInfo::Timer.
Referenced by EventPlayerAssaultsPoint().
Reimplemented from Battleground.
Definition at line 705 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 616 of file BattlegroundAV.cpp.
References AddAVCreature(), Creature::AI(), 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_SOUTH_MINE, Battleground::BgCreatures, Battleground::DelCreature(), Battleground::GetBGCreature(), HORDE, m_Mine_Owner, m_Mine_PrevOwner, m_Mine_Reclaim_Timer, SendMineWorldStates(), CreatureAI::Talk(), TC_LOG_DEBUG, TEXT_COLDTOOTH_MINE_ALLIANCE_TAKEN, TEXT_COLDTOOTH_MINE_HORDE_TAKEN, TEXT_IRONDEEP_MINE_ALLIANCE_TAKEN, TEXT_IRONDEEP_MINE_HORDE_TAKEN, TEXT_SNIVVLE_RANDOM, and urand().
Referenced by HandleKillUnit(), PostUpdateImpl(), and StartingEventOpenDoors().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 1503 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 1461 of file BattlegroundAV.cpp.
References ASSERT, m_Nodes, BG_AV_NodeInfo::Owner, POINT_CONTROLED, POINT_DESTROYED, BG_AV_NodeInfo::PrevOwner, BG_AV_NodeInfo::PrevState, BG_AV_NodeInfo::State, and BG_AV_NodeInfo::Timer.
Referenced by EventPlayerDefendsPoint().
|
private |
Definition at line 765 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 1438 of file BattlegroundAV.cpp.
References ASSERT, m_Nodes, BG_AV_NodeInfo::Owner, POINT_ASSAULTED, POINT_CONTROLED, POINT_DESTROYED, BG_AV_NodeInfo::PrevOwner, BG_AV_NodeInfo::PrevState, BG_AV_NodeInfo::State, BG_AV_NodeInfo::Timer, BG_AV_NodeInfo::TotalOwner, and BG_AV_NodeInfo::Tower.
Referenced by EventPlayerDestroyedPoint().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 450 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(), Battleground::GetBonusHonorFromKill(), HORDE, m_CaptainAlive, m_Nodes, POINT_CONTROLED, Battleground::RewardHonorToTeam(), Battleground::RewardReputationToTeam(), TEAM_ALLIANCE, and TEAM_HORDE.
Referenced by HandleKillUnit(), and UpdateScore().
Definition at line 936 of file BattlegroundAV.cpp.
References ALLIANCE, AssaultNode(), ASSERT, AV_CPLACE_HERALD, AV_NEUTRAL_TEAM, 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(), GetNodeThroughObject(), GetStaticNodeInfo(), Battleground::GetStatus(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), HORDE, IsTower(), m_Nodes, BG_AV_NodeInfo::Owner, POINT_ASSAULTED, POINT_CONTROLED, Battleground::RelocateDeadPlayers(), RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, SCORE_GRAVEYARDS_ASSAULTED, SCORE_TOWERS_ASSAULTED, Battleground::SpawnBGObject(), BG_AV_NodeInfo::State, STATUS_IN_PROGRESS, TC_LOG_DEBUG, UpdateNodeWorldState(), and UpdatePlayerScore().
Referenced by EventPlayerClickedOnFlag(), and EventPlayerDefendsPoint().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 842 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(), STATUS_IN_PROGRESS, and TC_LOG_DEBUG.
Definition at line 870 of file BattlegroundAV.cpp.
References ALLIANCE, ASSERT, AV_CPLACE_HERALD, AV_NEUTRAL_TEAM, 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(), GetNodeThroughObject(), GetStaticNodeInfo(), Battleground::GetStatus(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), HORDE, IsTower(), m_Nodes, BG_AV_NodeInfo::Owner, POINT_ASSAULTED, PopulateNode(), RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, SCORE_GRAVEYARDS_DEFENDED, SCORE_TOWERS_DEFENDED, Battleground::SpawnBGObject(), BG_AV_NodeInfo::State, STATUS_IN_PROGRESS, TC_LOG_DEBUG, TC_LOG_ERROR, UpdateNodeWorldState(), and UpdatePlayerScore().
Referenced by EventPlayerClickedOnFlag().
|
private |
Definition at line 562 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(), Battleground::GetBonusHonorFromKill(), GetObjectThroughNode(), GetStaticNodeInfo(), Battleground::GetTeamIndexByTeamId(), HORDE, IsTower(), m_Nodes, BG_AV_NodeInfo::Owner, PopulateNode(), RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, Battleground::RewardHonorToTeam(), Battleground::RewardReputationToTeam(), Battleground::SpawnBGObject(), TC_LOG_DEBUG, TC_LOG_ERROR, UpdateNodeWorldState(), and UpdateScore().
Referenced by PostUpdateImpl().
|
overrideprivatevirtual |
Reimplemented from Battleground.
Definition at line 1027 of file BattlegroundAV.cpp.
References ALLIANCE, StaticNodeInfo::AllianceAssault, StaticNodeInfo::AllianceControl, 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_FIRSTAID_STATION, BG_AV_NODES_MAX, BG_AV_NODES_SNOWFALL_GRAVE, BGAVNodeInfo, Battleground::GetStatus(), HORDE, StaticNodeInfo::HordeAssault, StaticNodeInfo::HordeControl, m_Nodes, m_Team_Scores, BG_AV_NodeInfo::Owner, POINT_ASSAULTED, POINT_DESTROYED, SendMineWorldStates(), BG_AV_NodeInfo::State, STATUS_IN_PROGRESS, and WorldPackets::WorldState::InitWorldStates::Worldstates.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 1103 of file BattlegroundAV.cpp.
References BG_AV_GraveyardIds, BG_AV_NODES_FIRSTAID_STATION, BG_AV_NODES_FROSTWOLF_HUT, Position::GetPosition(), Player::GetTeam(), Battleground::GetTeamIndexByTeamId(), WorldSafeLocsEntry::Loc, m_Nodes, POINT_CONTROLED, BG_AV_NodeInfo::State, sWorldSafeLocsStore, DBCPosition3D::X, and DBCPosition3D::Y.
|
private |
Definition at line 780 of file BattlegroundAV.cpp.
References ABORT, 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, TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by EventPlayerAssaultsPoint(), EventPlayerDefendsPoint(), and SetupBattleground().
|
private |
Definition at line 802 of file BattlegroundAV.cpp.
References ABORT, ALLIANCE, 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, TC_LOG_DEBUG, and TC_LOG_ERROR.
Referenced by EventPlayerDestroyedPoint().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 1566 of file BattlegroundAV.cpp.
References ALLIANCE, Battleground::GetPrematureWinner(), Battleground::GetTeamIndexByTeamId(), HORDE, and m_Team_Scores.
|
inlineprivate |
Definition at line 1667 of file BattlegroundAV.h.
References BG_AV_NODES_MAX, and BGAVNodeInfo.
Referenced by EventPlayerAssaultsPoint(), EventPlayerDefendsPoint(), EventPlayerDestroyedPoint(), and UpdateNodeWorldState().
Reimplemented from Battleground.
Definition at line 503 of file BattlegroundAV.cpp.
References ALLIANCE, Player::GetSession(), Battleground::GetStatus(), Player::GetTeam(), Battleground::HandleAreaTrigger(), HORDE, Player::LeaveBattleground(), WorldSession::SendAreaTriggerMessage(), and STATUS_IN_PROGRESS.
Reimplemented from Battleground.
Definition at line 66 of file BattlegroundAV.cpp.
References Battleground::GetStatus(), Player::GetTeam(), Battleground::HandleKillPlayer(), STATUS_IN_PROGRESS, and UpdateScore().
Reimplemented from Battleground.
Definition at line 75 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(), Battleground::GetBonusHonorFromKill(), Object::GetEntry(), Battleground::GetStatus(), Player::GetTeam(), HORDE, m_CaptainAlive, RESPAWN_IMMEDIATELY, Battleground::RewardHonorToTeam(), Battleground::RewardReputationToTeam(), Battleground::SpawnBGObject(), STATUS_IN_PROGRESS, TC_LOG_DEBUG, TC_LOG_ERROR, TEXT_FROSTWOLF_GENERAL_DEAD, TEXT_STORMPIKE_GENERAL_DEAD, and UpdateScore().
Reimplemented from Battleground.
Definition at line 152 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(), BG_AV_NodeInfo::State, STATUS_IN_PROGRESS, and TC_LOG_DEBUG.
|
private |
Definition at line 1449 of file BattlegroundAV.cpp.
References m_Nodes, BG_AV_NodeInfo::Owner, POINT_CONTROLED, BG_AV_NodeInfo::PrevOwner, BG_AV_NodeInfo::PrevState, BG_AV_NodeInfo::State, BG_AV_NodeInfo::Timer, BG_AV_NodeInfo::TotalOwner, and BG_AV_NodeInfo::Tower.
Referenced by BattlegroundAV(), and ResetBGSubclass().
|
inlineprivate |
Definition at line 1677 of file BattlegroundAV.h.
References m_Nodes, and BG_AV_NodeInfo::Tower.
Referenced by DePopulateNode(), EventPlayerAssaultsPoint(), EventPlayerDefendsPoint(), EventPlayerDestroyedPoint(), and PopulateNode().
|
private |
Definition at line 714 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, Battleground::DelCreature(), FACTION_ALLIANCE_GENERIC, FACTION_HORDE_GENERIC, Battleground::GetBGCreature(), Battleground::GetTeamIndexByTeamId(), HORDE, IsTower(), m_Nodes, m_Team_QuestStatus, BG_AV_NodeInfo::Owner, Unit::SetFaction(), TC_LOG_ERROR, and WORLD_TRIGGER.
Referenced by EventPlayerDefendsPoint(), EventPlayerDestroyedPoint(), HandleQuestComplete(), and SetupBattleground().
|
overrideprivatevirtual |
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 358 of file BattlegroundAV.cpp.
References ACTION_BUFF_YELL, 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, m_CaptainAlive, m_CaptainBuffTimer, m_Mine_Owner, m_Mine_Reclaim_Timer, m_Mine_Timer, m_Nodes, POINT_ASSAULTED, STATUS_IN_PROGRESS, BG_AV_NodeInfo::Timer, UpdateScore(), and urand().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 490 of file BattlegroundAV.cpp.
References AV_BUFF_A_CAPTAIN, AV_BUFF_ARMOR, AV_BUFF_H_CAPTAIN, Unit::RemoveAurasDueToSpell(), and TC_LOG_ERROR.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 1473 of file BattlegroundAV.cpp.
References ALLIANCE, AsUnderlyingType(), 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_Mine_Owner, m_Mine_PrevOwner, m_Mine_Timer, m_Team_QuestStatus, m_Team_Scores, and urand().
|
private |
Definition at line 1076 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().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 1133 of file BattlegroundAV.cpp.
References AddAVCreature(), Battleground::AddObject(), Battleground::AddSpiritGuide(), 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_DoorRotation, 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(), m_Nodes, PopulateNode(), RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, Battleground::SpawnBGObject(), TC_LOG_DEBUG, TC_LOG_ERROR, TEAM_ALLIANCE, and TEAM_HORDE.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 416 of file BattlegroundAV.cpp.
References BG_AV_OBJECT_DOOR_A, BG_AV_OBJECT_DOOR_H, and Battleground::DoorClose().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 422 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, Battleground::SpawnBGObject(), Battleground::StartTimedAchievement(), TC_LOG_DEBUG, and Battleground::UpdateWorldState().
|
private |
Definition at line 1059 of file BattlegroundAV.cpp.
References ALLIANCE, AV_NEUTRAL_TEAM, AV_SNOWFALL_N, BG_AV_NODES_SNOWFALL_GRAVE, GetStaticNodeInfo(), HORDE, m_Nodes, BG_AV_NodeInfo::Owner, POINT_ASSAULTED, POINT_DESTROYED, BG_AV_NodeInfo::State, and Battleground::UpdateWorldState().
Referenced by EventPlayerAssaultsPoint(), EventPlayerDefendsPoint(), and EventPlayerDestroyedPoint().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 537 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, SCORE_GRAVEYARDS_ASSAULTED, SCORE_GRAVEYARDS_DEFENDED, SCORE_TOWERS_ASSAULTED, SCORE_TOWERS_DEFENDED, Player::UpdateAchievementCriteria(), and Battleground::UpdatePlayerScore().
Referenced by EventPlayerAssaultsPoint(), and EventPlayerDefendsPoint().
Definition at line 256 of file BattlegroundAV.cpp.
References ALLIANCE, ASSERT, AV_Alliance_Score, AV_Horde_Score, AV_SOUND_NEAR_VICTORY, BG_AV_TEXT_ALLIANCE_NEAR_LOSE, BG_AV_TEXT_HORDE_NEAR_LOSE, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, EndBattleground(), Battleground::GetTeamIndexByTeamId(), HORDE, m_IsInformedNearVictory, m_Team_Scores, Battleground::PlaySoundToAll(), SEND_MSG_NEAR_LOSE, Battleground::SendBroadcastText(), TEAM_ALLIANCE, TEAM_HORDE, and Battleground::UpdateWorldState().
Referenced by EventPlayerDestroyedPoint(), HandleKillPlayer(), HandleKillUnit(), and PostUpdateImpl().
|
private |
Definition at line 1701 of file BattlegroundAV.h.
Referenced by BattlegroundAV(), CheckAchievementCriteriaMeet(), EndBattleground(), HandleKillUnit(), PostUpdateImpl(), and ResetBGSubclass().
|
private |
Definition at line 1700 of file BattlegroundAV.h.
Referenced by BattlegroundAV(), PostUpdateImpl(), and ResetBGSubclass().
|
private |
Definition at line 1703 of file BattlegroundAV.h.
Referenced by BattlegroundAV(), ResetBGSubclass(), and UpdateScore().
|
private |
Definition at line 1696 of file BattlegroundAV.h.
Referenced by BattlegroundAV(), CanActivateGO(), ChangeMineOwner(), CheckAchievementCriteriaMeet(), PostUpdateImpl(), ResetBGSubclass(), and SendMineWorldStates().
|
private |
Definition at line 1697 of file BattlegroundAV.h.
Referenced by BattlegroundAV(), ChangeMineOwner(), ResetBGSubclass(), and SendMineWorldStates().
|
private |
Definition at line 1699 of file BattlegroundAV.h.
Referenced by BattlegroundAV(), ChangeMineOwner(), and PostUpdateImpl().
|
private |
Definition at line 1698 of file BattlegroundAV.h.
Referenced by BattlegroundAV(), PostUpdateImpl(), and ResetBGSubclass().
|
private |
Definition at line 1694 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 1692 of file BattlegroundAV.h.
Referenced by BattlegroundAV(), HandleQuestComplete(), PopulateNode(), and ResetBGSubclass().
|
private |
Definition at line 1691 of file BattlegroundAV.h.
Referenced by BattlegroundAV(), FillInitialWorldStates(), GetPrematureWinner(), ResetBGSubclass(), and UpdateScore().