TrinityCore
|
#include <BattlefieldWG.h>
Public Member Functions | |
~BattlefieldWG () | |
void | OnBattleStart () override |
Called when the battle start. More... | |
void | OnBattleEnd (bool endByTimer) override |
Called when battle end. More... | |
void | OnStartGrouping () override |
Called when grouping starts (15 minutes before battlestart) More... | |
void | OnPlayerJoinWar (Player *player) override |
Called when player accept invite to join battle. More... | |
void | OnPlayerLeaveWar (Player *player) override |
Called when player left the battle. More... | |
void | OnPlayerLeaveZone (Player *player) override |
Called when player left the WG zone. More... | |
void | OnPlayerEnterZone (Player *player) override |
Called when player enters in WG zone. More... | |
bool | Update (uint32 diff) override |
Called for update battlefield data. More... | |
void | OnCreatureCreate (Creature *creature) override |
Called when a creature is created. More... | |
void | OnCreatureRemove (Creature *creature) override |
Called when a creature is removed. More... | |
void | OnGameObjectCreate (GameObject *go) override |
Called when a gameobject is created. More... | |
void | BrokenWallOrTower (TeamId team) |
Called when a wall/tower is broken. More... | |
void | UpdateDamagedTowerCount (TeamId team) |
Called when a tower is damaged. More... | |
void | UpdatedDestroyedTowerCount (TeamId team) |
Called when tower is broken. More... | |
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. More... | |
GameObject * | GetRelic () |
Return pointer to relic object. More... | |
void | SetRelic (ObjectGuid relicGUID) |
Define relic object. More... | |
bool | CanInteractWithRelic () |
Check if players can interact with the relic (Only if the last door has been broken) More... | |
void | SetRelicInteractible (bool allow) |
Define if player can interact with the relic. More... | |
void | UpdateVehicleCountWG () |
void | UpdateCounterVehicle (bool init) |
void | SendInitWorldStatesTo (Player *player) |
void | SendInitWorldStatesToAll () override |
Send all worldstate data to all player in zone. More... | |
void | FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &packet) override |
void | HandleKill (Player *killer, Unit *victim) override |
Called when a Unit is kill in battlefield zone. More... | |
void | OnUnitDeath (Unit *unit) override |
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. More... | |
virtual | ~Battlefield () |
Destructor. More... | |
void | SendUpdateWorldState (uint32 variable, uint32 value, bool hidden=false) |
Update data of a worldstate to all players present in zone. More... | |
void | InvitePlayersInZoneToQueue () |
Invite all players in zone to join the queue, called x minutes before battle start in Update() More... | |
void | InvitePlayersInQueueToWar () |
Invite all players in queue to join battle on battle start. More... | |
void | InvitePlayersInZoneToWar () |
Invite all players in zone to join battle on battle start. More... | |
uint32 | GetTypeId () const |
uint32 | GetZoneId () const |
uint64 | GetQueueId () 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. More... | |
int8 | GetState () const |
void | ToggleBattlefield (bool enable) |
Enable or Disable battlefield. More... | |
bool | IsEnabled () const |
Return if battlefield is enable. More... | |
void | KickPlayerFromBattlefield (ObjectGuid guid) |
Kick player from battlefield and teleport him to kick-point location. More... | |
void | HandlePlayerEnterZone (Player *player, uint32 zone) |
Called when player (player) enter in zone. More... | |
void | HandlePlayerLeaveZone (Player *player, uint32 zone) |
Called when player (player) leave the zone. More... | |
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. More... | |
Group * | GetGroupPlayer (ObjectGuid guid, TeamId TeamId) |
Return battlefield group where player is. More... | |
bool | AddOrSetPlayerToCorrectBfGroup (Player *player) |
Force player to join a battlefield group. More... | |
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 |
virtual Creature * | SpawnCreature (uint32 entry, float x, float y, float z, float o, TeamId) |
Creature * | SpawnCreature (uint32 entry, Position const &pos, TeamId) |
GameObject * | SpawnGameObject (uint32 entry, float x, float y, float z, float o) |
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) |
bool | CanFlyIn () |
Return if we can use mount in battlefield. More... | |
void | SendAreaSpiritHealerQueryOpcode (Player *player, ObjectGuid const &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< uint32, BfCapturePoint * > | BfCapturePointMap |
typedef of map witch store capturepoint and the associate gameobject entry More... | |
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 (uint32 entry) const |
void | RegisterZone (uint32 zoneid) |
bool | HasPlayer (Player *player) const |
void | TeamCastSpell (TeamId team, int32 spellId) |
BattlefieldWG::~BattlefieldWG | ( | ) |
Implement proper support for vehicle+player teleportation
Use spell victory/defeat in wg instead of RewardMarkOfHonor() && RewardHonor
Add proper implement of achievement
void BattlefieldWG::BrokenWallOrTower | ( | TeamId | team | ) |
|
inline |
Check if players can interact with the relic (Only if the last door has been broken)
|
overridevirtual |
Reimplemented from Battlefield.
|
overridevirtual |
Implements Battlefield.
Reimplemented from Battlefield.
|
inline |
Return pointer to relic object.
Called when a Unit is kill in battlefield zone.
PvP activity worldstate
Reimplemented from Battlefield.
|
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.
|
overridevirtual |
Called when the battle start.
Reimplemented from Battlefield.
|
overridevirtual |
Called when a creature is created.
Reimplemented from ZoneScript.
|
overridevirtual |
|
overridevirtual |
Called when a gameobject is created.
Reimplemented from ZoneScript.
|
overridevirtual |
Called when player enters in WG zone.
player | : Player who enters the zone |
Reimplemented from Battlefield.
|
overridevirtual |
Called when player accept invite to join battle.
player | Player who accepted invite |
Reimplemented from Battlefield.
|
overridevirtual |
Called when player left the battle.
player | : Player who left the battle |
Reimplemented from Battlefield.
|
overridevirtual |
Called when player left the WG zone.
player | : Player who left the zone |
Reimplemented from Battlefield.
|
overridevirtual |
Called when grouping starts (15 minutes before battlestart)
Reimplemented from Battlefield.
|
overridevirtual |
Reimplemented from ZoneScript.
|
overridevirtual |
Reimplemented from ZoneScript.
void BattlefieldWG::PromotePlayer | ( | Player * | killer | ) |
void BattlefieldWG::RemoveAurasFromPlayer | ( | Player * | player | ) |
void BattlefieldWG::SendInitWorldStatesTo | ( | Player * | player | ) |
|
overridevirtual |
Send all worldstate data to all player in zone.
Implements Battlefield.
|
inline |
Define relic object.
|
inline |
Define if player can interact with the relic.
|
overridevirtual |
Called when battlefield is setup, at server start.
Reimplemented from Battlefield.
Called for update battlefield data.
diff | : time elapsed since the last call (in ms) |
Reimplemented from Battlefield.
void BattlefieldWG::UpdateCounterVehicle | ( | bool | init | ) |
void BattlefieldWG::UpdateDamagedTowerCount | ( | TeamId | team | ) |
Called when a tower is damaged.
void BattlefieldWG::UpdatedDestroyedTowerCount | ( | TeamId | team | ) |
Called when tower is broken.
void BattlefieldWG::UpdateTenacity | ( | ) |
void BattlefieldWG::UpdateVehicleCountWG | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |