![]() |
TrinityCore
|
#include <BattlefieldWG.h>
Public Member Functions | |
| BfWGGameObjectBuilding (BattlefieldWG *wg, WintergraspGameObjectBuildingType type, uint32 worldState) | |
| void | Init (GameObject *go) |
| ObjectGuid const & | GetGUID () const |
| void | Rebuild () |
| void | RebuildGate () |
| void | Damaged () |
| void | Destroyed () |
| void | UpdateCreatureAndGo () |
| void | UpdateTurretAttack (bool disable) |
Definition at line 480 of file BattlefieldWG.h.
| BfWGGameObjectBuilding::BfWGGameObjectBuilding | ( | BattlefieldWG * | wg, |
| WintergraspGameObjectBuildingType | type, | ||
| uint32 | worldState | ||
| ) |
Definition at line 1358 of file BattlefieldWG.cpp.
References _state, _staticTowerInfo, _teamControl, _type, _wg, _worldState, ASSERT, BATTLEFIELD_WG_OBJECTSTATE_NONE, and TEAM_NEUTRAL.
| void BfWGGameObjectBuilding::Damaged | ( | ) |
Definition at line 1419 of file BattlefieldWG.cpp.
References _state, _staticTowerInfo, _teamControl, _type, _wg, _worldState, BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_DAMAGE, BATTLEFIELD_WG_OBJECTTYPE_KEEP_TOWER, BATTLEFIELD_WG_OBJECTTYPE_TOWER, StaticWintergraspTowerInfo::Damaged, Battlefield::GetAttackerTeam(), Battlefield::GetCreature(), Battlefield::GetDefenderTeam(), Battlefield::GetMap(), Battlefield::HideNpc(), m_CreatureTopList, m_TurretTopList, Battlefield::SendWarning(), WorldStateMgr::SetValueAndSaveInDb(), StaticWintergraspTowerInfo::TextIds, and BattlefieldWG::UpdateDamagedTowerCount().
| void BfWGGameObjectBuilding::Destroyed | ( | ) |
Definition at line 1443 of file BattlefieldWG.cpp.
References _buildGUID, _state, _staticTowerInfo, _teamControl, _type, _wg, _worldState, BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_DESTROY, BATTLEFIELD_WG_OBJECTTYPE_DOOR_LAST, BATTLEFIELD_WG_OBJECTTYPE_KEEP_TOWER, BATTLEFIELD_WG_OBJECTTYPE_TOWER, BattlefieldWG::BrokenWallOrTower(), StaticWintergraspTowerInfo::Destroyed, WorldObject::FindNearestGameObject(), Battlefield::GetGameObject(), Battlefield::GetMap(), BattlefieldWG::GetRelic(), GO_FLAG_IN_USE, GO_FLAG_NOT_SELECTABLE, GO_STATE_ACTIVE, GO_WINTERGRASP_KEEP_COLLISION_WALL, GameObject::RemoveFlag(), Battlefield::SendWarning(), BattlefieldWG::SetRelicInteractible(), WorldStateMgr::SetValueAndSaveInDb(), TC_LOG_ERROR, StaticWintergraspTowerInfo::TextIds, and BattlefieldWG::UpdatedDestroyedTowerCount().
|
inline |
Definition at line 512 of file BattlefieldWG.h.
References _buildGUID.
Referenced by BattlefieldWG::BrokenWallOrTower().
| void BfWGGameObjectBuilding::Init | ( | GameObject * | go | ) |
Definition at line 1477 of file BattlefieldWG.cpp.
References _buildGUID, _state, _staticTowerInfo, _teamControl, _type, _wg, _worldState, ASSERT, AttackTowers, BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_DAMAGE, BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_DESTROY, BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT, BATTLEFIELD_WG_OBJECTSTATE_HORDE_DAMAGE, BATTLEFIELD_WG_OBJECTSTATE_HORDE_DESTROY, BATTLEFIELD_WG_OBJECTSTATE_HORDE_INTACT, BATTLEFIELD_WG_OBJECTSTATE_NEUTRAL_DAMAGE, BATTLEFIELD_WG_OBJECTSTATE_NEUTRAL_DESTROY, BATTLEFIELD_WG_OBJECTSTATE_NEUTRAL_INTACT, BATTLEFIELD_WG_OBJECTSTATE_NONE, BATTLEFIELD_WG_OBJECTTYPE_DOOR, BATTLEFIELD_WG_OBJECTTYPE_DOOR_LAST, BATTLEFIELD_WG_OBJECTTYPE_KEEP_TOWER, BATTLEFIELD_WG_OBJECTTYPE_TOWER, BATTLEFIELD_WG_OBJECTTYPE_WALL, BATTLEFIELD_WG_TOWER_FLAMEWATCH, BATTLEFIELD_WG_TOWER_FORTRESS_NE, BATTLEFIELD_WG_TOWER_FORTRESS_NW, BATTLEFIELD_WG_TOWER_FORTRESS_SE, BATTLEFIELD_WG_TOWER_FORTRESS_SW, BATTLEFIELD_WG_TOWER_SHADOWSIGHT, BATTLEFIELD_WG_TOWER_WINTER_S_EDGE, WintergraspTowerData::CreatureBottom, creatureData, WintergraspTowerData::GameObject, Battlefield::GetAttackerTeam(), Battlefield::GetDefenderTeam(), Object::GetEntry(), BaseEntity::GetGUID(), Battlefield::GetMap(), WorldStateMgr::GetValue(), GO_DESTRUCTIBLE_DAMAGED, GO_DESTRUCTIBLE_DESTROYED, GO_DESTRUCTIBLE_REBUILDING, GO_WINTERGRASP_FLAMEWATCH_TOWER, GO_WINTERGRASP_FORTRESS_TOWER_1, GO_WINTERGRASP_FORTRESS_TOWER_2, GO_WINTERGRASP_FORTRESS_TOWER_3, GO_WINTERGRASP_FORTRESS_TOWER_4, GO_WINTERGRASP_SHADOWSIGHT_TOWER, GO_WINTERGRASP_WINTER_S_EDGE_TOWER, Battlefield::HideNpc(), m_CreatureBottomList, m_GameObjectList, m_TowerCannonBottomList, m_TurretTopList, NPC_WINTERGRASP_TOWER_CANNON, GameObject::SetDestructibleState(), WorldStateMgr::SetValueAndSaveInDb(), Battlefield::SpawnCreature(), Battlefield::SpawnGameObject(), TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, TowerCannon, WintergraspTowerCannonData::TowerCannonBottom, TowerData, WintergraspTowerCannonData::TurretTop, UpdateCreatureAndGo(), WG_MAX_TOWER, and WintergraspFaction.
Referenced by BattlefieldWG::SetupBattlefield().
| void BfWGGameObjectBuilding::Rebuild | ( | ) |
Definition at line 1370 of file BattlefieldWG.cpp.
References _buildGUID, _state, _teamControl, _type, _wg, _worldState, BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT, BATTLEFIELD_WG_OBJECTTYPE_DOOR, BATTLEFIELD_WG_OBJECTTYPE_DOOR_LAST, BATTLEFIELD_WG_OBJECTTYPE_KEEP_TOWER, BATTLEFIELD_WG_OBJECTTYPE_TOWER, BATTLEFIELD_WG_OBJECTTYPE_WALL, WorldObject::FindNearestGameObject(), Battlefield::GetAttackerTeam(), Battlefield::GetDefenderTeam(), Battlefield::GetGameObject(), Battlefield::GetMap(), GO_DESTRUCTIBLE_REBUILDING, GO_STATE_ACTIVE, GO_WINTERGRASP_KEEP_COLLISION_WALL, GO_WINTERGRASP_VAULT_GATE, WorldStateMgr::SetValueAndSaveInDb(), TEAM_NEUTRAL, UpdateCreatureAndGo(), and WintergraspFaction.
| void BfWGGameObjectBuilding::RebuildGate | ( | ) |
Definition at line 1407 of file BattlefieldWG.cpp.
References _buildGUID, _wg, WorldObject::FindNearestGameObject(), Battlefield::GetGameObject(), GO_STATE_READY, GO_WINTERGRASP_KEEP_COLLISION_WALL, and GO_WINTERGRASP_VAULT_GATE.
| void BfWGGameObjectBuilding::UpdateCreatureAndGo | ( | ) |
Definition at line 1649 of file BattlefieldWG.cpp.
References _wg, Battlefield::GetAttackerTeam(), Battlefield::GetCreature(), Battlefield::GetDefenderTeam(), Battlefield::GetGameObject(), Battlefield::HideNpc(), m_CreatureBottomList, m_CreatureTopList, m_GameObjectList, RESPAWN_IMMEDIATELY, RESPAWN_ONE_DAY, and Battlefield::ShowNpc().
| void BfWGGameObjectBuilding::UpdateTurretAttack | ( | bool | disable | ) |
Definition at line 1676 of file BattlefieldWG.cpp.
References _buildGUID, _wg, Battlefield::GetAttackerTeam(), Battlefield::GetCreature(), Battlefield::GetDefenderTeam(), ObjectGuid::GetEntry(), GO_WINTERGRASP_FLAMEWATCH_TOWER, GO_WINTERGRASP_FORTRESS_TOWER_1, GO_WINTERGRASP_FORTRESS_TOWER_2, GO_WINTERGRASP_FORTRESS_TOWER_3, GO_WINTERGRASP_FORTRESS_TOWER_4, GO_WINTERGRASP_SHADOWSIGHT_TOWER, GO_WINTERGRASP_WINTER_S_EDGE_TOWER, Battlefield::HideNpc(), m_TowerCannonBottomList, m_TurretTopList, Battlefield::ShowNpc(), and WintergraspFaction.
|
private |
Definition at line 487 of file BattlefieldWG.h.
Referenced by Destroyed(), GetGUID(), Init(), Rebuild(), RebuildGate(), and UpdateTurretAttack().
|
private |
Definition at line 495 of file BattlefieldWG.h.
Referenced by BfWGGameObjectBuilding(), Damaged(), Destroyed(), Init(), and Rebuild().
|
private |
Definition at line 497 of file BattlefieldWG.h.
Referenced by BfWGGameObjectBuilding(), Damaged(), Destroyed(), and Init().
|
private |
Definition at line 490 of file BattlefieldWG.h.
Referenced by BfWGGameObjectBuilding(), Damaged(), Destroyed(), Init(), and Rebuild().
|
private |
Definition at line 492 of file BattlefieldWG.h.
Referenced by BfWGGameObjectBuilding(), Damaged(), Destroyed(), Init(), and Rebuild().
|
private |
Definition at line 484 of file BattlefieldWG.h.
Referenced by BfWGGameObjectBuilding(), Damaged(), Destroyed(), Init(), Rebuild(), RebuildGate(), UpdateCreatureAndGo(), and UpdateTurretAttack().
|
private |
Definition at line 493 of file BattlefieldWG.h.
Referenced by BfWGGameObjectBuilding(), Damaged(), Destroyed(), Init(), and Rebuild().
|
private |
Definition at line 503 of file BattlefieldWG.h.
Referenced by Init(), and UpdateCreatureAndGo().
|
private |
Definition at line 504 of file BattlefieldWG.h.
Referenced by Damaged(), and UpdateCreatureAndGo().
|
private |
Definition at line 500 of file BattlefieldWG.h.
Referenced by Init(), and UpdateCreatureAndGo().
|
private |
Definition at line 505 of file BattlefieldWG.h.
Referenced by Init(), and UpdateTurretAttack().
|
private |
Definition at line 506 of file BattlefieldWG.h.
Referenced by Damaged(), Init(), and UpdateTurretAttack().