![]() |
TrinityCore
|
#include <BattlefieldWG.h>
Inheritance diagram for BattlefieldWG:Public Member Functions | |
| ~BattlefieldWG () | |
| void | OnBattleStart () override |
| Called when the battle start. | |
| void | OnBattleEnd (bool endByTimer) override |
| Called when battle end. | |
| void | OnStartGrouping () override |
| Called when grouping starts (15 minutes before battlestart) | |
| void | OnPlayerJoinWar (Player *player) override |
| Called when player accept invite to join battle. | |
| void | OnPlayerLeaveWar (Player *player) override |
| Called when player left the battle. | |
| void | OnPlayerLeaveZone (Player *player) override |
| Called when player left the WG zone. | |
| void | OnPlayerEnterZone (Player *player) override |
| Called when player enters in WG zone. | |
| bool | Update (uint32 diff) override |
| Called for update battlefield data. | |
| void | OnCreatureCreate (Creature *creature) override |
| Called when a creature is created. | |
| void | OnCreatureRemove (Creature *creature) override |
| Called when a creature is removed. | |
| void | OnGameObjectCreate (GameObject *go) override |
| Called when a gameobject is created. | |
| void | BrokenWallOrTower (TeamId team, BfWGGameObjectBuilding *building) |
| Called when a wall/tower is broken. | |
| void | UpdateDamagedTowerCount (TeamId team) |
| Called when a tower is damaged. | |
| void | UpdatedDestroyedTowerCount (TeamId team) |
| Called when tower is broken. | |
| void | DoCompleteOrIncrementAchievement (uint32 achievement, Player *player, uint8 incrementNumber=1) override |
| void | RemoveAurasFromPlayer (Player *player) |
| bool | SetupBattlefield () override |
| Called when battlefield is setup, at server start. | |
| GameObject * | GetRelic () |
| Return pointer to relic object. | |
| void | SetRelic (ObjectGuid relicGUID) |
| Define relic object. | |
| bool | CanInteractWithRelic () |
| Check if players can interact with the relic (Only if the last door has been broken) | |
| void | SetRelicInteractible (bool allow) |
| Define if player can interact with the relic. | |
| void | UpdateVehicleCountWG () |
| void | UpdateCounterVehicle (bool init) |
| void | SendInitWorldStatesToAll () override |
| Send all worldstate data to all player in zone. | |
| void | FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &packet) override |
| void | HandleKill (Player *killer, Unit *victim) override |
| Called when a Unit is kill in battlefield zone. | |
| void | OnUnitDeath (Unit *unit) override |
| void | HandlePromotion (Player *killer, Unit *killed) |
| void | PromotePlayer (Player *killer) |
| void | UpdateTenacity () |
| void | ProcessEvent (WorldObject *obj, uint32 eventId) override |
| bool | FindAndRemoveVehicleFromList (Unit *vehicle) |
| uint8 | GetSpiritGraveyardId (uint32 areaId) const |
| uint32 | GetData (uint32 data) const override |
Public Member Functions inherited from Battlefield | |
| Battlefield () | |
| Constructor. | |
| Battlefield (Battlefield const &)=delete | |
| Battlefield (Battlefield &&)=delete | |
| Battlefield & | operator= (Battlefield const &)=delete |
| Battlefield & | operator= (Battlefield &&)=delete |
| virtual | ~Battlefield () |
| Destructor. | |
| void | SendInitWorldStatesTo (Player *player) |
| void | SendUpdateWorldState (uint32 variable, uint32 value) |
| Update data of a worldstate to all players present in zone. | |
| void | InvitePlayersInZoneToQueue () |
| Invite all players in zone to join the queue, called x minutes before battle start in Update() | |
| void | InvitePlayersInQueueToWar () |
| Invite all players in queue to join battle on battle start. | |
| void | InvitePlayersInZoneToWar () |
| Invite all players in zone to join battle on battle start. | |
| uint32 | GetTypeId () const |
| uint32 | GetZoneId () const |
| void | TeamApplyBuff (TeamId team, uint32 spellId, uint32 spellId2=0) |
| bool | IsWarTime () const |
| Return true if battle is start, false if battle is not started. | |
| void | ToggleBattlefield (bool enable) |
| Enable or Disable battlefield. | |
| bool | IsEnabled () const |
| Return if battlefield is enable. | |
| void | KickPlayerFromBattlefield (ObjectGuid guid) |
| Kick player from battlefield and teleport him to kick-point location. | |
| void | HandlePlayerEnterZone (Player *player, uint32 zone) |
| Called when player (player) enter in zone. | |
| void | HandlePlayerLeaveZone (Player *player, uint32 zone) |
| Called when player (player) leave the zone. | |
| virtual uint64 | GetData64 (uint32 dataId) const override |
| virtual void | SetData64 (uint32 dataId, uint64 value) override |
| virtual void | SetData (uint32 dataId, uint32 value) override |
| virtual void | UpdateData (uint32 index, int32 pad) |
| TeamId | GetDefenderTeam () const |
| TeamId | GetAttackerTeam () const |
| TeamId | GetOtherTeam (TeamId team) const |
| void | SetDefenderTeam (TeamId team) |
| Group * | GetFreeBfRaid (TeamId TeamId) |
| Find a not full battlefield group, if there is no, create one. | |
| Group * | GetGroupPlayer (ObjectGuid guid, TeamId TeamId) |
| Return battlefield group where player is. | |
| bool | AddOrSetPlayerToCorrectBfGroup (Player *player) |
| Force player to join a battlefield group. | |
| WorldSafeLocsEntry const * | GetClosestGraveyard (Player *player) |
| virtual void | AddPlayerToResurrectQueue (ObjectGuid npc_guid, ObjectGuid player_guid) |
| void | RemovePlayerFromResurrectQueue (ObjectGuid player_guid) |
| void | SetGraveyardNumber (uint32 number) |
| BfGraveyard * | GetGraveyardById (uint32 id) const |
| Creature * | SpawnCreature (uint32 entry, Position const &pos) |
| GameObject * | SpawnGameObject (uint32 entry, Position const &pos, QuaternionData const &rot) |
| Creature * | GetCreature (ObjectGuid guid) |
| GameObject * | GetGameObject (ObjectGuid guid) |
| void | SendWarning (uint8 id, WorldObject const *target=nullptr) |
| void | PlayerAcceptInviteToQueue (Player *player) |
| void | PlayerAcceptInviteToWar (Player *player) |
| uint32 | GetBattleId () const |
| void | AskToLeaveQueue (Player *player) |
| void | PlayerAskToLeave (Player *player) |
| bool | CanFlyIn () |
| Return if we can use mount in battlefield. | |
| void | SendAreaSpiritHealerQueryOpcode (Player *player, ObjectGuid guid) |
| void | StartBattle () |
| void | EndBattle (bool endByTimer) |
| void | HideNpc (Creature *creature) |
| void | ShowNpc (Creature *creature, bool aggressive) |
| GraveyardVect | GetGraveyardVector () const |
| uint32 | GetTimer () const |
| void | SetTimer (uint32 timer) |
| void | DoPlaySoundToAll (uint32 soundID) |
| void | InvitePlayerToQueue (Player *player) |
| void | InvitePlayerToWar (Player *player) |
| void | InitStalker (uint32 entry, Position const &pos) |
Public Member Functions inherited from ZoneScript | |
| ZoneScript () | |
| virtual | ~ZoneScript () |
| virtual uint32 | GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data) |
| virtual uint32 | GetGameObjectEntry (ObjectGuid::LowType, uint32 entry) |
| virtual void | OnGameObjectRemove (GameObject *) |
| virtual ObjectGuid | GetGuidData (uint32) const |
| virtual void | SetGuidData (uint32, ObjectGuid) |
Additional Inherited Members | |
Public Types inherited from Battlefield | |
| typedef std::map< ObjectGuid::LowType, BfCapturePoint * > | BfCapturePointMap |
| typedef of map witch store capturepoint and the associate gameobject entry | |
Protected Member Functions inherited from Battlefield | |
| void | KickAfkPlayers () |
| virtual void | SendRemoveWorldStates (Player *) |
| void | BroadcastPacketToZone (WorldPacket const *data) const |
| void | BroadcastPacketToQueue (WorldPacket const *data) const |
| void | BroadcastPacketToWar (WorldPacket const *data) const |
| void | AddCapturePoint (BfCapturePoint *cp) |
| BfCapturePoint * | GetCapturePoint (ObjectGuid::LowType lowguid) const |
| void | RegisterZone (uint32 zoneid) |
| bool | HasPlayer (Player *player) const |
| void | TeamCastSpell (TeamId team, int32 spellId) |
Definition at line 212 of file BattlefieldWG.h.
| BattlefieldWG::~BattlefieldWG | ( | ) |
Definition at line 402 of file BattlefieldWG.cpp.
| void BattlefieldWG::BrokenWallOrTower | ( | TeamId | team, |
| BfWGGameObjectBuilding * | building | ||
| ) |
Called when a wall/tower is broken.
Definition at line 1190 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Check if players can interact with the relic (Only if the last door has been broken)
Definition at line 332 of file BattlefieldWG.h.
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from Battlefield.
Definition at line 764 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements Battlefield.
Definition at line 1154 of file BattlefieldWG.cpp.
Here is the call graph for this function:| bool BattlefieldWG::FindAndRemoveVehicleFromList | ( | Unit * | vehicle | ) |
Definition at line 978 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Reimplemented from Battlefield.
Definition at line 1133 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Return pointer to relic object.
Definition at line 326 of file BattlefieldWG.h.
Here is the call graph for this function:
Here is the caller graph for this function:Called when a Unit is kill in battlefield zone.
@todoRecent PvP activity worldstate
Reimplemented from Battlefield.
Definition at line 962 of file BattlefieldWG.cpp.
Here is the call graph for this function:Definition at line 1006 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Called when battle end.
| endByTimer | : true if battle ended when timer is at 00:00, false if battle ended by clicking on relic |
Reimplemented from Battlefield.
Definition at line 650 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Called when the battle start.
Reimplemented from Battlefield.
Definition at line 567 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Called when a creature is created.
Reimplemented from ZoneScript.
Definition at line 819 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Called when a creature is removed.
Reimplemented from ZoneScript.
Definition at line 892 of file BattlefieldWG.cpp.
|
overridevirtual |
Called when a gameobject is created.
Reimplemented from ZoneScript.
Definition at line 925 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Called when player enters in WG zone.
| player | : Player who enters the zone |
Reimplemented from Battlefield.
Definition at line 1123 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Called when player accept invite to join battle.
| player | Player who accepted invite |
Reimplemented from Battlefield.
Definition at line 1060 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Called when player left the battle.
| player | : Player who left the battle |
Reimplemented from Battlefield.
Definition at line 1094 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Called when player left the WG zone.
| player | : Player who left the zone |
Reimplemented from Battlefield.
Definition at line 1112 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Called when grouping starts (15 minutes before battlestart)
Reimplemented from Battlefield.
Definition at line 788 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from ZoneScript.
Definition at line 998 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from ZoneScript.
Definition at line 1246 of file BattlefieldWG.cpp.
Here is the call graph for this function:| void BattlefieldWG::PromotePlayer | ( | Player * | killer | ) |
Definition at line 1017 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void BattlefieldWG::RemoveAurasFromPlayer | ( | Player * | player | ) |
Definition at line 1048 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Send all worldstate data to all player in zone.
Implements Battlefield.
Definition at line 1182 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Define relic object.
Definition at line 329 of file BattlefieldWG.h.
|
inline |
Define if player can interact with the relic.
Definition at line 335 of file BattlefieldWG.h.
Here is the caller graph for this function:
|
overridevirtual |
Called when battlefield is setup, at server start.
Reimplemented from Battlefield.
Definition at line 411 of file BattlefieldWG.cpp.
Here is the call graph for this function:
|
overridevirtual |
Called for update battlefield data.
| diff | : time elapsed since the last call (in ms) |
Reimplemented from Battlefield.
Definition at line 547 of file BattlefieldWG.cpp.
Here is the call graph for this function:| void BattlefieldWG::UpdateCounterVehicle | ( | bool | init | ) |
Definition at line 629 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void BattlefieldWG::UpdateDamagedTowerCount | ( | TeamId | team | ) |
Called when a tower is damaged.
Definition at line 1283 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void BattlefieldWG::UpdatedDestroyedTowerCount | ( | TeamId | team | ) |
Called when tower is broken.
Definition at line 1204 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void BattlefieldWG::UpdateTenacity | ( | ) |
Definition at line 1300 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void BattlefieldWG::UpdateVehicleCountWG | ( | ) |
Definition at line 1292 of file BattlefieldWG.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 364 of file BattlefieldWG.h.
|
protected |
Definition at line 367 of file BattlefieldWG.h.
|
protected |
Definition at line 363 of file BattlefieldWG.h.
|
protected |
Definition at line 359 of file BattlefieldWG.h.
|
protected |
Definition at line 371 of file BattlefieldWG.h.
|
protected |
Definition at line 370 of file BattlefieldWG.h.
|
protected |
Definition at line 369 of file BattlefieldWG.h.
|
protected |
Definition at line 373 of file BattlefieldWG.h.
|
protected |
Definition at line 366 of file BattlefieldWG.h.
|
protected |
Definition at line 361 of file BattlefieldWG.h.