![]() |
TrinityCore
|
#include <BattlegroundRV.h>
Inheritance diagram for BattlegroundRV:Private Member Functions | |
| void | PostUpdateImpl (uint32 diff) override |
| Post-update hook. | |
| void | TogglePillarCollision () |
Private Attributes | |
| uint32 | _timer |
| uint32 | _state |
| bool | _pillarCollision |
Definition at line 92 of file BattlegroundRV.h.
| BattlegroundRV::BattlegroundRV | ( | ) |
Definition at line 26 of file BattlegroundRV.cpp.
References _pillarCollision, _state, _timer, BG_RV_OBJECT_MAX, and Battleground::BgObjects.
|
overridevirtual |
Reimplemented from Arena.
Definition at line 104 of file BattlegroundRV.cpp.
References BG_RV_WORLD_STATE, Arena::FillInitialWorldStates(), and WorldPackets::WorldState::InitWorldStates::Worldstates.
Reimplemented from Battleground.
Definition at line 85 of file BattlegroundRV.cpp.
References Battleground::GetStatus(), Battleground::HandleAreaTrigger(), and STATUS_IN_PROGRESS.
|
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 35 of file BattlegroundRV.cpp.
References _state, _timer, BG_RV_CLOSE_FIRE_TIMER, BG_RV_FIRE_TO_PILLAR_TIMER, 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, Battleground::DoorClose(), Battleground::DoorOpen(), Battleground::GetStatus(), STATUS_IN_PROGRESS, and TogglePillarCollision().
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 111 of file BattlegroundRV.cpp.
References Battleground::AddObject(), 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_PILAR_1, BG_RV_OBJECT_PILAR_2, BG_RV_OBJECT_PILAR_3, BG_RV_OBJECT_PILAR_4, BG_RV_OBJECT_PILAR_COLLISION_1, BG_RV_OBJECT_PILAR_COLLISION_2, BG_RV_OBJECT_PILAR_COLLISION_3, BG_RV_OBJECT_PILAR_COLLISION_4, BG_RV_OBJECT_PULLEY_1, BG_RV_OBJECT_PULLEY_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_PILAR_COLLISION_1, BG_RV_OBJECT_TYPE_PILAR_COLLISION_2, BG_RV_OBJECT_TYPE_PILAR_COLLISION_3, BG_RV_OBJECT_TYPE_PILAR_COLLISION_4, BG_RV_OBJECT_TYPE_PULLEY_1, BG_RV_OBJECT_TYPE_PULLEY_2, RESPAWN_IMMEDIATELY, and TC_LOG_ERROR.
|
overridevirtual |
Reimplemented from Battleground.
Definition at line 68 of file BattlegroundRV.cpp.
References _pillarCollision, _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::SpawnBGObject(), and TogglePillarCollision().
|
private |
Definition at line 148 of file BattlegroundRV.cpp.
References _pillarCollision, BG_RV_OBJECT_GEAR_2, BG_RV_OBJECT_PILAR_1, BG_RV_OBJECT_PILAR_2, BG_RV_OBJECT_PILAR_COLLISION_1, BG_RV_OBJECT_PILAR_COLLISION_4, BG_RV_OBJECT_PULLEY_2, Battleground::DoorClose(), Battleground::DoorOpen(), ObjectAccessor::FindPlayer(), Battleground::GetBGObject(), Battleground::GetPlayers(), GO_STATE_ACTIVE, and GO_STATE_READY.
Referenced by PostUpdateImpl(), and StartingEventOpenDoors().
|
private |
Definition at line 111 of file BattlegroundRV.h.
Referenced by BattlegroundRV(), StartingEventOpenDoors(), and TogglePillarCollision().
|
private |
Definition at line 110 of file BattlegroundRV.h.
Referenced by BattlegroundRV(), PostUpdateImpl(), and StartingEventOpenDoors().
|
private |
Definition at line 109 of file BattlegroundRV.h.
Referenced by BattlegroundRV(), PostUpdateImpl(), and StartingEventOpenDoors().