![]() |
TrinityCore
|
#include <BattlefieldWG.h>
Public Member Functions | |
| WintergraspWorkshop (BattlefieldWG *wg, uint8 type) | |
| uint8 | GetId () const |
| TeamId | GetTeamControl () const |
| void | GiveControlTo (TeamId teamId, bool init=false) |
| void | UpdateGraveyardAndWorkshop () |
Private Attributes | |
| BattlefieldWG * | _wg |
| ObjectGuid | _buildGUID |
| WintergraspGameObjectState | _state |
| TeamId | _teamControl |
| StaticWintergraspWorkshopInfo const * | _staticInfo |
Definition at line 529 of file BattlefieldWG.h.
| WintergraspWorkshop::WintergraspWorkshop | ( | BattlefieldWG * | wg, |
| uint8 | type | ||
| ) |
Definition at line 1739 of file BattlefieldWG.cpp.
References _state, _staticInfo, _teamControl, _wg, ASSERT, BATTLEFIELD_WG_OBJECTSTATE_NONE, TEAM_NEUTRAL, WG_MAX_WORKSHOP, and WorkshopData.
| uint8 WintergraspWorkshop::GetId | ( | ) | const |
Definition at line 1749 of file BattlefieldWG.cpp.
References _staticInfo, and StaticWintergraspWorkshopInfo::WorkshopId.
|
inline |
Definition at line 543 of file BattlefieldWG.h.
References _teamControl.
| void WintergraspWorkshop::GiveControlTo | ( | TeamId | teamId, |
| bool | init = false |
||
| ) |
Definition at line 1754 of file BattlefieldWG.cpp.
References _state, _staticInfo, _teamControl, _wg, StaticWintergraspWorkshopInfo::AllianceAttack, StaticWintergraspWorkshopInfo::AllianceCapture, BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_INTACT, BATTLEFIELD_WG_OBJECTSTATE_HORDE_INTACT, BATTLEFIELD_WG_WORKSHOP_KEEP_WEST, Battlefield::GetGraveyardById(), Battlefield::GetMap(), StaticWintergraspWorkshopInfo::HordeAttack, StaticWintergraspWorkshopInfo::HordeCapture, Battlefield::SendWarning(), WorldStateMgr::SetValueAndSaveInDb(), TEAM_ALLIANCE, TEAM_HORDE, TEAM_NEUTRAL, StaticWintergraspWorkshopInfo::TextIds, BattlefieldWG::UpdateCounterVehicle(), StaticWintergraspWorkshopInfo::WorkshopId, and StaticWintergraspWorkshopInfo::WorldStateId.
Referenced by WintergraspCapturePoint::HandleContestedEventAlliance(), WintergraspCapturePoint::HandleContestedEventHorde(), WintergraspCapturePoint::HandleProgressEventAlliance(), WintergraspCapturePoint::HandleProgressEventHorde(), BattlefieldWG::SetupBattlefield(), and UpdateGraveyardAndWorkshop().
| void WintergraspWorkshop::UpdateGraveyardAndWorkshop | ( | ) |
Definition at line 1806 of file BattlefieldWG.cpp.
References _staticInfo, _wg, BATTLEFIELD_WG_WORKSHOP_NE, Battlefield::GetAttackerTeam(), Battlefield::GetDefenderTeam(), GiveControlTo(), and StaticWintergraspWorkshopInfo::WorkshopId.
|
private |
Definition at line 533 of file BattlefieldWG.h.
|
private |
Definition at line 534 of file BattlefieldWG.h.
Referenced by GiveControlTo(), and WintergraspWorkshop().
|
private |
Definition at line 537 of file BattlefieldWG.h.
Referenced by GetId(), GiveControlTo(), UpdateGraveyardAndWorkshop(), and WintergraspWorkshop().
|
private |
Definition at line 535 of file BattlefieldWG.h.
Referenced by GetTeamControl(), GiveControlTo(), and WintergraspWorkshop().
|
private |
Definition at line 532 of file BattlefieldWG.h.
Referenced by GiveControlTo(), UpdateGraveyardAndWorkshop(), and WintergraspWorkshop().