|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BattlegroundRV.h>
Protected Member Functions | |
| bool | GetPillarCollision () const |
| uint32 | getState () const |
| uint32 | getTimer () const |
| void | SetPillarCollision (bool apply) |
| void | setState (uint32 state) |
| void | setTimer (uint32 timer) |
| void | TogglePillarCollision () |
| Protected Member Functions inherited from Battleground | |
| void | _CheckSafePositions (uint32 diff) |
| Player * | _GetPlayer (BattlegroundPlayerMap::const_iterator itr, const char *context) const |
| Player * | _GetPlayer (BattlegroundPlayerMap::iterator itr, const char *context) |
| Player * | _GetPlayer (uint64 guid, bool offlineRemove, const char *context) const |
| Player * | _GetPlayerForTeam (uint32 teamId, BattlegroundPlayerMap::const_iterator itr, const char *context) const |
| void | _ProcessJoin (uint32 diff) |
| void | _ProcessLeave (uint32 diff) |
| void | _ProcessOfflineQueue () |
| void | _ProcessProgress (uint32 diff) |
| void | _ProcessRessurect (uint32 diff) |
| void | EndNow () |
| void | PlayerAddedToBGCheckIfBGIsRunning (Player *player) |
Private Member Functions | |
| void | PostUpdateImpl (uint32 diff) OVERRIDE |
| Post-update hook. | |
Private Attributes | |
| bool | PillarCollision |
| uint32 | State |
| uint32 | Timer |
Additional Inherited Members | |
| Public Types inherited from Battleground | |
| typedef std::map< uint64, BattlegroundPlayer > | BattlegroundPlayerMap |
| typedef std::map< uint64, BattlegroundScore * > | BattlegroundScoreMap |
| typedef std::vector< uint64 > | BGCreatures |
| typedef std::vector< uint64 > | BGObjects |
| Static Public Member Functions inherited from Battleground | |
| static TeamId | GetTeamIndexByTeamId (uint32 TeamTeam) |
| Public Attributes inherited from Battleground | |
| BGCreatures | BgCreatures |
| BGObjects | BgObjects |
| Protected Attributes inherited from Battleground | |
| bool | m_BuffChange |
| uint8 | m_Events |
| BGHonorMode | m_HonorMode |
| bool | m_IsRandom |
| BattlegroundPlayerMap | m_Players |
| std::map< uint64, std::vector< uint64 > > | m_ReviveQueue |
| int32 | m_TeamScores [BG_TEAMS_COUNT] |
| BattlegroundScoreMap | PlayerScores |
| BattlegroundStartTimeIntervals | StartDelayTimes [BG_STARTING_EVENT_COUNT] |
| uint32 | StartMessageIds [BG_STARTING_EVENT_COUNT] |
Definition at line 82 of file BattlegroundRV.h.
| BattlegroundRV::BattlegroundRV | ( | ) |
Definition at line 14 of file BattlegroundRV.cpp.
References BG_RV_OBJECT_MAX, BG_START_DELAY_15S, BG_START_DELAY_1M, BG_START_DELAY_30S, BG_START_DELAY_NONE, BG_STARTING_EVENT_FIRST, BG_STARTING_EVENT_FOURTH, BG_STARTING_EVENT_SECOND, BG_STARTING_EVENT_THIRD, Battleground::BgObjects, LANG_ARENA_FIFTEEN_SECONDS, LANG_ARENA_HAS_BEGUN, LANG_ARENA_ONE_MINUTE, LANG_ARENA_THIRTY_SECONDS, PillarCollision, Battleground::StartDelayTimes, Battleground::StartMessageIds, State, and Timer.
| BattlegroundRV::~BattlegroundRV | ( | ) |
Definition at line 28 of file BattlegroundRV.cpp.
|
virtual |
Reimplemented from Battleground.
Definition at line 82 of file BattlegroundRV.cpp.
References Battleground::AddPlayer(), ALLIANCE, BG_RV_WORLD_STATE_A, BG_RV_WORLD_STATE_H, Battleground::GetAlivePlayersCountByTeam(), Object::GetGUID(), HORDE, Battleground::PlayerScores, and Battleground::UpdateWorldState().
|
virtual |
Reimplemented from Battleground.
Definition at line 140 of file BattlegroundRV.cpp.
References ALLIANCE, WorldStateBuilder::AppendState(), BG_RV_WORLD_STATE, BG_RV_WORLD_STATE_A, BG_RV_WORLD_STATE_H, Battleground::GetAlivePlayersCountByTeam(), and HORDE.
|
inlineprotected |
Definition at line 114 of file BattlegroundRV.h.
References PillarCollision.
Referenced by TogglePillarCollision().
|
inlineprotected |
|
inlineprotected |
Reimplemented from Battleground.
Definition at line 121 of file BattlegroundRV.cpp.
References Battleground::GetStatus(), Battleground::HandleAreaTrigger(), and STATUS_IN_PROGRESS.
Reimplemented from Battleground.
Definition at line 102 of file BattlegroundRV.cpp.
References ALLIANCE, BG_RV_WORLD_STATE_A, BG_RV_WORLD_STATE_H, Battleground::CheckArenaWinConditions(), Battleground::GetAlivePlayersCountByTeam(), Battleground::GetStatus(), Battleground::HandleKillPlayer(), HORDE, SF_LOG_ERROR, STATUS_IN_PROGRESS, and Battleground::UpdateWorldState().
|
privatevirtual |
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 30 of file BattlegroundRV.cpp.
References 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(), getState(), Battleground::GetStatus(), getTimer(), setState(), setTimer(), STATUS_IN_PROGRESS, and TogglePillarCollision().
Reimplemented from Battleground.
Definition at line 91 of file BattlegroundRV.cpp.
References ALLIANCE, BG_RV_WORLD_STATE_A, BG_RV_WORLD_STATE_H, Battleground::CheckArenaWinConditions(), Battleground::GetAlivePlayersCountByTeam(), Battleground::GetStatus(), HORDE, STATUS_WAIT_LEAVE, and Battleground::UpdateWorldState().
|
virtual |
Reimplemented from Battleground.
Definition at line 147 of file BattlegroundRV.cpp.
References Battleground::Reset().
|
inlineprotected |
Definition at line 115 of file BattlegroundRV.h.
References PillarCollision.
Referenced by StartingEventOpenDoors(), and TogglePillarCollision().
|
inlineprotected |
Definition at line 112 of file BattlegroundRV.h.
References State.
Referenced by PostUpdateImpl(), and StartingEventOpenDoors().
|
inlineprotected |
Definition at line 109 of file BattlegroundRV.h.
References Timer.
Referenced by PostUpdateImpl(), and StartingEventOpenDoors().
|
virtual |
Reimplemented from Battleground.
Definition at line 153 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 SF_LOG_ERROR.
|
virtual |
Reimplemented from Battleground.
Definition at line 63 of file BattlegroundRV.cpp.
|
virtual |
Reimplemented from Battleground.
Definition at line 65 of file BattlegroundRV.cpp.
References 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(), SetPillarCollision(), setState(), setTimer(), Battleground::SpawnBGObject(), and TogglePillarCollision().
|
protected |
Definition at line 193 of file BattlegroundRV.cpp.
References 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::BgObjects, Battleground::DoorClose(), Battleground::DoorOpen(), ObjectAccessor::FindPlayer(), Battleground::GetBgMap(), GetPillarCollision(), GO_STATE_ACTIVE, GO_STATE_READY, HIGHGUID_PLAYER, Battleground::m_Players, MAKE_NEW_GUID(), and SetPillarCollision().
Referenced by PostUpdateImpl(), and StartingEventOpenDoors().
|
private |
Definition at line 103 of file BattlegroundRV.h.
Referenced by BattlegroundRV(), GetPillarCollision(), and SetPillarCollision().
|
private |
Definition at line 102 of file BattlegroundRV.h.
Referenced by BattlegroundRV(), getState(), and setState().
|
private |
Definition at line 101 of file BattlegroundRV.h.
Referenced by BattlegroundRV(), getTimer(), and setTimer().