|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <BattlegroundDS.h>
Protected Member Functions | |
| uint8 | getPipeKnockBackCount () const |
| uint32 | getPipeKnockBackTimer () const |
| uint32 | getWaterFallKnockbackTimer () const |
| uint32 | getWaterFallStatus () const |
| uint32 | getWaterFallTimer () const |
| void | setPipeKnockBackCount (uint8 count) |
| void | setPipeKnockBackTimer (uint32 timer) |
| void | setWaterFallKnockbackTimer (uint32 timer) |
| void | setWaterFallStatus (uint8 status) |
| void | setWaterFallTimer (uint32 timer) |
| 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 | |
| uint8 | _pipeKnockBackCount |
| uint32 | _pipeKnockBackTimer |
| uint32 | _waterfallKnockbackTimer |
| uint8 | _waterfallStatus |
| uint32 | _waterfallTimer |
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 69 of file BattlegroundDS.h.
| BattlegroundDS::BattlegroundDS | ( | ) |
Definition at line 14 of file BattlegroundDS.cpp.
References BG_DS_NPC_MAX, BG_DS_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::BgCreatures, Battleground::BgObjects, LANG_ARENA_FIFTEEN_SECONDS, LANG_ARENA_HAS_BEGUN, LANG_ARENA_ONE_MINUTE, LANG_ARENA_THIRTY_SECONDS, Battleground::StartDelayTimes, and Battleground::StartMessageIds.
| BattlegroundDS::~BattlegroundDS | ( | ) |
Definition at line 29 of file BattlegroundDS.cpp.
|
virtual |
Reimplemented from Battleground.
Definition at line 130 of file BattlegroundDS.cpp.
References Battleground::AddPlayer(), Object::GetGUID(), Battleground::PlayerScores, and Battleground::UpdateArenaWorldState().
|
virtual |
Reimplemented from Battleground.
Definition at line 187 of file BattlegroundDS.cpp.
References WorldStateBuilder::AppendState(), and Battleground::UpdateArenaWorldState().
|
inlineprotected |
Definition at line 101 of file BattlegroundDS.h.
References _pipeKnockBackCount.
Referenced by HandleAreaTrigger(), and PostUpdateImpl().
|
inlineprotected |
Definition at line 103 of file BattlegroundDS.h.
References _pipeKnockBackTimer.
Referenced by PostUpdateImpl().
|
inlineprotected |
Definition at line 99 of file BattlegroundDS.h.
References _waterfallKnockbackTimer.
Referenced by PostUpdateImpl().
|
inlineprotected |
Definition at line 95 of file BattlegroundDS.h.
References _waterfallStatus.
Referenced by PostUpdateImpl().
|
inlineprotected |
Definition at line 97 of file BattlegroundDS.h.
References _waterfallTimer.
Referenced by PostUpdateImpl().
Reimplemented from Battleground.
Definition at line 163 of file BattlegroundDS.cpp.
References BG_DS_PIPE_KNOCKBACK_TOTAL_COUNT, getPipeKnockBackCount(), Battleground::GetStatus(), Battleground::HandleAreaTrigger(), Unit::HasAura(), Unit::RemoveAurasDueToSpell(), setPipeKnockBackCount(), and STATUS_IN_PROGRESS.
Reimplemented from Battleground.
Definition at line 146 of file BattlegroundDS.cpp.
References Battleground::CheckArenaWinConditions(), Battleground::GetStatus(), Battleground::HandleKillPlayer(), SF_LOG_ERROR, STATUS_IN_PROGRESS, and Battleground::UpdateArenaWorldState().
|
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 31 of file BattlegroundDS.cpp.
References BG_DS_NPC_PIPE_KNOCKBACK_1, BG_DS_NPC_PIPE_KNOCKBACK_2, BG_DS_NPC_WATERFALL_KNOCKBACK, BG_DS_OBJECT_WATER_1, BG_DS_OBJECT_WATER_2, BG_DS_PIPE_KNOCKBACK_DELAY, BG_DS_PIPE_KNOCKBACK_TOTAL_COUNT, BG_DS_SPELL_FLUSH, BG_DS_SPELL_WATER_SPOUT, BG_DS_WATERFALL_DURATION, BG_DS_WATERFALL_KNOCKBACK_TIMER, BG_DS_WATERFALL_STATUS_OFF, BG_DS_WATERFALL_STATUS_ON, BG_DS_WATERFALL_STATUS_WARNING, BG_DS_WATERFALL_TIMER_MAX, BG_DS_WATERFALL_TIMER_MIN, BG_DS_WATERFALL_WARNING_DURATION, Battleground::BgCreatures, Battleground::BgObjects, Battleground::DoorClose(), Battleground::DoorOpen(), Battleground::GetBgMap(), getPipeKnockBackCount(), getPipeKnockBackTimer(), Battleground::GetStatus(), getWaterFallKnockbackTimer(), getWaterFallStatus(), getWaterFallTimer(), GO_STATE_ACTIVE, GO_STATE_READY, setPipeKnockBackCount(), setPipeKnockBackTimer(), setWaterFallKnockbackTimer(), setWaterFallStatus(), setWaterFallTimer(), and STATUS_IN_PROGRESS.
Reimplemented from Battleground.
Definition at line 137 of file BattlegroundDS.cpp.
References Battleground::CheckArenaWinConditions(), Battleground::GetStatus(), STATUS_WAIT_LEAVE, and Battleground::UpdateArenaWorldState().
|
virtual |
Reimplemented from Battleground.
Definition at line 193 of file BattlegroundDS.cpp.
References Battleground::Reset().
|
inlineprotected |
Definition at line 102 of file BattlegroundDS.h.
References _pipeKnockBackCount.
Referenced by HandleAreaTrigger(), PostUpdateImpl(), and StartingEventOpenDoors().
|
inlineprotected |
Definition at line 104 of file BattlegroundDS.h.
References _pipeKnockBackTimer.
Referenced by PostUpdateImpl(), and StartingEventOpenDoors().
|
virtual |
Reimplemented from Battleground.
Definition at line 199 of file BattlegroundDS.cpp.
References Battleground::AddCreature(), Battleground::AddObject(), BG_DS_NPC_PIPE_KNOCKBACK_1, BG_DS_NPC_PIPE_KNOCKBACK_2, BG_DS_NPC_TYPE_WATER_SPOUT, BG_DS_NPC_WATERFALL_KNOCKBACK, BG_DS_OBJECT_BUFF_1, BG_DS_OBJECT_BUFF_2, BG_DS_OBJECT_DOOR_1, BG_DS_OBJECT_DOOR_2, BG_DS_OBJECT_TYPE_BUFF_1, BG_DS_OBJECT_TYPE_BUFF_2, BG_DS_OBJECT_TYPE_DOOR_1, BG_DS_OBJECT_TYPE_DOOR_2, BG_DS_OBJECT_TYPE_WATER_1, BG_DS_OBJECT_TYPE_WATER_2, BG_DS_OBJECT_WATER_1, BG_DS_OBJECT_WATER_2, RESPAWN_IMMEDIATELY, and SF_LOG_ERROR.
|
inlineprotected |
Definition at line 100 of file BattlegroundDS.h.
References _waterfallKnockbackTimer.
Referenced by PostUpdateImpl().
|
inlineprotected |
Definition at line 96 of file BattlegroundDS.h.
References _waterfallStatus.
Referenced by PostUpdateImpl(), and StartingEventOpenDoors().
|
inlineprotected |
Definition at line 98 of file BattlegroundDS.h.
References _waterfallTimer.
Referenced by PostUpdateImpl(), and StartingEventOpenDoors().
|
virtual |
Reimplemented from Battleground.
Definition at line 96 of file BattlegroundDS.cpp.
References BG_DS_OBJECT_DOOR_1, BG_DS_OBJECT_DOOR_2, RESPAWN_IMMEDIATELY, and Battleground::SpawnBGObject().
|
virtual |
Reimplemented from Battleground.
Definition at line 102 of file BattlegroundDS.cpp.
References BG_DS_OBJECT_BUFF_1, BG_DS_OBJECT_BUFF_2, BG_DS_OBJECT_DOOR_1, BG_DS_OBJECT_DOOR_2, BG_DS_OBJECT_WATER_1, BG_DS_OBJECT_WATER_2, BG_DS_PIPE_KNOCKBACK_FIRST_DELAY, BG_DS_WATERFALL_STATUS_OFF, BG_DS_WATERFALL_TIMER_MAX, BG_DS_WATERFALL_TIMER_MIN, Battleground::BgObjects, Battleground::DoorOpen(), ObjectAccessor::FindPlayer(), Battleground::GetBgMap(), Battleground::GetPlayers(), GO_STATE_ACTIVE, RESPAWN_IMMEDIATELY, setPipeKnockBackCount(), setPipeKnockBackTimer(), setWaterFallStatus(), setWaterFallTimer(), and Battleground::SpawnBGObject().
|
private |
Definition at line 91 of file BattlegroundDS.h.
Referenced by getPipeKnockBackCount(), and setPipeKnockBackCount().
|
private |
Definition at line 90 of file BattlegroundDS.h.
Referenced by getPipeKnockBackTimer(), and setPipeKnockBackTimer().
|
private |
Definition at line 89 of file BattlegroundDS.h.
Referenced by getWaterFallKnockbackTimer(), and setWaterFallKnockbackTimer().
|
private |
Definition at line 88 of file BattlegroundDS.h.
Referenced by getWaterFallStatus(), and setWaterFallStatus().
|
private |
Definition at line 87 of file BattlegroundDS.h.
Referenced by getWaterFallTimer(), and setWaterFallTimer().