AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "BattlegroundRV.h"
Protected Member Functions | |
void | TeleportUnitToNewZ (Unit *unit, float newZ, bool casting) |
void | CheckPositionForUnit (Unit *unit) |
void | UpdatePillars () |
uint32 | GetPillarIdForPos (Position *p) |
Protected Member Functions inherited from Arena | |
Arena () | |
void | AddPlayer (Player *player) override |
void | RemovePlayer (Player *) override |
void | FillInitialWorldStates (WorldPacket &data) override |
void | UpdateArenaWorldState () |
void | HandleKillPlayer (Player *player, Player *killer) override |
Protected Member Functions inherited from Battleground | |
void | EndNow () |
void | PlayerAddedToBGCheckIfBGIsRunning (Player *player) |
void | _ProcessResurrect (uint32 diff) |
void | _ProcessProgress (uint32 diff) |
void | _ProcessLeave (uint32 diff) |
void | _ProcessJoin (uint32 diff) |
void | _CheckSafePositions (uint32 diff) |
virtual void | RemovePlayer (Player *) |
Private Member Functions | |
void | PostUpdateImpl (uint32 diff) override |
Post-update hook. More... | |
Private Attributes | |
Milliseconds | _timer |
uint32 | _state |
uint16 | _checkPlayersTimer |
BattlegroundRV::BattlegroundRV | ( | ) |
References _checkPlayersTimer, _state, _timer, BG_RV_OBJECT_MAX, and Battleground::BgObjects.
|
protected |
References Map::GetDynamicMapTree(), Map::GetHeight(), DynamicMapTree::getHeight(), WorldObject::GetMap(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Unit::IsAlive(), Unit::IsFalling(), and TeleportUnitToNewZ().
Referenced by PostUpdateImpl().
|
overridevirtual |
Reimplemented from Arena.
References BG_RV_WORLD_STATE, and Arena::FillInitialWorldStates().
GameObject * BattlegroundRV::GetPillarAtPosition | ( | Position * | p | ) |
References Battleground::BgObjects, Battleground::GetBgMap(), Map::GetGameObject(), and GetPillarIdForPos().
References BG_RV_OBJECT_PILAR_1, BG_RV_OBJECT_PILAR_2, BG_RV_OBJECT_PILAR_3, BG_RV_OBJECT_PILAR_4, and Position::GetExactDist2d().
Referenced by GetPillarAtPosition().
Reimplemented from Battleground.
References _state, BG_RV_STATE_OPEN_FENCES, Position::GetOrientation(), Battleground::GetStatus(), Unit::NearTeleportTo(), and STATUS_IN_PROGRESS.
|
overridevirtual |
Reimplemented from Battleground.
References Unit::NearTeleportTo().
|
overridevirtual |
Reimplemented from Battleground.
References Battleground::Init().
|
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.
References _checkPlayersTimer, _state, _timer, BG_RV_CLOSE_FIRE_TIMER, BG_RV_FIRE_TO_PILLAR_TIMER, BG_RV_OBJECT_ELEVATOR_1, BG_RV_OBJECT_ELEVATOR_2, BG_RV_OBJECT_FIRE_1, BG_RV_OBJECT_FIREDOOR_2, BG_RV_PILLAR_SWITCH_TIMER, BG_RV_STATE_CLOSE_FIRE, BG_RV_STATE_OPEN_FENCES, BG_RV_STATE_SWITCH_PILLARS, CheckPositionForUnit(), Battleground::DoorClose(), Battleground::DoorOpen(), Battleground::GetBgMap(), Battleground::GetBGObject(), Battleground::GetStatus(), GO_FLAG_TRANSPORT, Battleground::m_Players, MAX_TOTEM_SLOT, STATUS_IN_PROGRESS, SUMMON_SLOT_TOTEM, TeleportUnitToNewZ(), and UpdatePillars().
|
overridevirtual |
Reimplemented from Battleground.
References Battleground::AddObject(), ARENA_READY_MARKER_ENTRY, BG_RV_OBJECT_BUFF_1, BG_RV_OBJECT_BUFF_2, BG_RV_OBJECT_ELEVATOR_1, BG_RV_OBJECT_ELEVATOR_2, BG_RV_OBJECT_FIRE_1, BG_RV_OBJECT_FIRE_2, BG_RV_OBJECT_FIREDOOR_1, BG_RV_OBJECT_FIREDOOR_2, BG_RV_OBJECT_GEAR_1, BG_RV_OBJECT_GEAR_2, BG_RV_OBJECT_MAX, BG_RV_OBJECT_PILAR_1, BG_RV_OBJECT_PILAR_2, BG_RV_OBJECT_PILAR_3, BG_RV_OBJECT_PILAR_4, BG_RV_OBJECT_PULLEY_1, BG_RV_OBJECT_PULLEY_2, BG_RV_OBJECT_READY_MARKER_1, BG_RV_OBJECT_READY_MARKER_2, BG_RV_OBJECT_TYPE_BUFF_1, BG_RV_OBJECT_TYPE_BUFF_2, BG_RV_OBJECT_TYPE_ELEVATOR_1, BG_RV_OBJECT_TYPE_ELEVATOR_2, BG_RV_OBJECT_TYPE_FIRE_1, BG_RV_OBJECT_TYPE_FIRE_2, BG_RV_OBJECT_TYPE_FIREDOOR_1, BG_RV_OBJECT_TYPE_FIREDOOR_2, BG_RV_OBJECT_TYPE_GEAR_1, BG_RV_OBJECT_TYPE_GEAR_2, BG_RV_OBJECT_TYPE_PILAR_1, BG_RV_OBJECT_TYPE_PILAR_2, BG_RV_OBJECT_TYPE_PILAR_3, BG_RV_OBJECT_TYPE_PILAR_4, BG_RV_OBJECT_TYPE_PULLEY_1, BG_RV_OBJECT_TYPE_PULLEY_2, Battleground::GetBGObject(), LOG_ERROR, and RESPAWN_IMMEDIATELY.
|
overridevirtual |
Reimplemented from Battleground.
References _state, _timer, BG_RV_FIRST_TIMER, BG_RV_OBJECT_BUFF_1, BG_RV_OBJECT_BUFF_2, BG_RV_OBJECT_ELEVATOR_1, BG_RV_OBJECT_ELEVATOR_2, BG_RV_STATE_OPEN_FENCES, Battleground::DoorOpen(), Battleground::m_Players, and Battleground::SpawnBGObject().
|
protected |
References Position::GetOrientation(), Position::GetPositionX(), Position::GetPositionY(), Unit::IsAlive(), Position::m_positionZ, and Unit::NearTeleportTo().
Referenced by CheckPositionForUnit(), and PostUpdateImpl().
|
protected |
References BG_RV_OBJECT_GEAR_2, BG_RV_OBJECT_PILAR_1, BG_RV_OBJECT_PILAR_2, BG_RV_OBJECT_PULLEY_2, Battleground::BgObjects, Battleground::GetBgMap(), Map::GetGameObject(), GameObject::GetGoState(), GO_STATE_ACTIVE, GO_STATE_READY, and GameObject::SetGoState().
Referenced by PostUpdateImpl().
|
private |
Referenced by BattlegroundRV(), and PostUpdateImpl().
|
private |
Referenced by BattlegroundRV(), HandleAreaTrigger(), PostUpdateImpl(), and StartingEventOpenDoors().
|
private |
Referenced by BattlegroundRV(), PostUpdateImpl(), and StartingEventOpenDoors().