#include <OutdoorPvP.h>
|
| OutdoorPvP () |
|
virtual | ~OutdoorPvP () |
|
void | DeleteSpawns () |
|
virtual void | FillInitialWorldStates (WorldPackets::WorldState::InitWorldStates &) |
|
virtual bool | HandleAreaTrigger (Player *, uint32, bool) |
|
virtual bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) |
|
virtual bool | HandleOpenGo (Player *player, GameObject *go) |
|
virtual bool | SetupOutdoorPvP () |
|
void | OnGameObjectCreate (GameObject *go) override |
|
void | OnGameObjectRemove (GameObject *go) override |
|
void | OnCreatureCreate (Creature *) override |
|
void | SendUpdateWorldState (uint32 field, uint32 value) |
|
virtual bool | Update (uint32 diff) |
|
virtual void | HandleKill (Player *killer, Unit *killed) |
|
virtual void | HandleKillImpl (Player *, Unit *) |
|
bool | IsInsideObjective (Player *player) const |
|
virtual void | AwardKillBonus (Player *) |
|
uint32 | GetTypeId () const |
|
virtual bool | HandleDropFlag (Player *player, uint32 spellId) |
|
virtual bool | HandleGossipOption (Player *player, Creature *creature, uint32 gossipid) |
|
virtual bool | CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso) |
|
void | TeamApplyBuff (TeamId team, uint32 spellId, uint32 spellId2=0) |
|
void | SendDefenseMessage (uint32 zoneId, uint32 id) |
|
Map * | GetMap () const |
|
| ZoneScript () |
|
virtual | ~ZoneScript () |
|
virtual uint32 | GetCreatureEntry (ObjectGuid::LowType, CreatureData const *data) |
|
virtual uint32 | GetGameObjectEntry (ObjectGuid::LowType, uint32 entry) |
|
virtual void | OnCreatureRemove (Creature *) |
|
virtual void | OnUnitDeath (Unit *) |
|
virtual ObjectGuid | GetGuidData (uint32) const |
|
virtual void | SetGuidData (uint32, ObjectGuid) |
|
virtual uint64 | GetData64 (uint32) const |
|
virtual void | SetData64 (uint32, uint64) |
|
virtual uint32 | GetData (uint32) const |
|
virtual void | SetData (uint32, uint32) |
|
virtual void | ProcessEvent (WorldObject *, uint32) |
|
OutdoorPvP::OutdoorPvP |
( |
| ) |
|
Map * m_map
Definition: OutdoorPvP.h:303
uint32 m_TypeId
Definition: OutdoorPvP.h:273
bool m_sendUpdate
Definition: OutdoorPvP.h:275
OutdoorPvP::~OutdoorPvP |
( |
| ) |
|
|
virtual |
void DeleteSpawns()
Definition: OutdoorPvP.cpp:240
OPvPCapturePointMap m_capturePoints
Definition: OutdoorPvP.h:269
ObjectGuid::LowType m_capturePointSpawnId
Definition: OutdoorPvP.h:131
#define UI64FMTD
Definition: Define.h:137
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
virtual void OutdoorPvP::AwardKillBonus |
( |
Player * |
| ) |
|
|
inlinevirtual |
558 for (
uint32 team = 0; team < 2; ++team)
559 for (GuidSet::const_iterator itr =
m_players[team].begin(); itr !=
m_players[team].end(); ++itr)
561 player->SendDirectMessage(data);
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
uint32_t uint32
Definition: Define.h:150
GuidSet m_players[2]
Definition: OutdoorPvP.h:271
template<class Worker >
void OutdoorPvP::BroadcastWorker |
( |
Worker & |
_worker, |
|
|
uint32 |
zoneId |
|
) |
| |
|
protected |
647 if (player->GetZoneId() == zoneId)
#define BG_TEAMS_COUNT
Definition: SharedDefines.h:4555
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
uint32_t uint32
Definition: Define.h:150
GuidSet m_players[2]
Definition: OutdoorPvP.h:271
531 if (itr->second->CanTalkTo(player, c, gso))
OPvPCapturePointMap m_capturePoints
Definition: OutdoorPvP.h:269
void OutdoorPvP::DeleteSpawns |
( |
| ) |
|
244 itr->second->DeleteSpawns();
OPvPCapturePointMap m_capturePoints
Definition: OutdoorPvP.h:269
577 OutdoorPvP::OPvPCapturePointMap::const_iterator itr =
m_capturePoints.find(guid);
OPvPCapturePointMap m_capturePoints
Definition: OutdoorPvP.h:269
Map* OutdoorPvP::GetMap |
( |
| ) |
const |
|
inline |
Map * m_map
Definition: OutdoorPvP.h:303
Definition: SharedDefines.h:994
Definition: SharedDefines.h:1000
Definition: SharedDefines.h:992
Definition: SharedDefines.h:999
Definition: SharedDefines.h:993
uint32 OutdoorPvP::GetTypeId |
( |
| ) |
const |
|
inline |
uint32 m_TypeId
Definition: OutdoorPvP.h:273
Reimplemented in OutdoorPvPSI.
497 if (itr->second->HandleCustomSpell(player, spellId, go))
OPvPCapturePointMap m_capturePoints
Definition: OutdoorPvP.h:269
Reimplemented in OutdoorPvPSI.
540 if (itr->second->HandleDropFlag(player,
id))
OPvPCapturePointMap m_capturePoints
Definition: OutdoorPvP.h:269
522 if (itr->second->HandleGossipOption(player, creature,
id))
OPvPCapturePointMap m_capturePoints
Definition: OutdoorPvP.h:269
void OutdoorPvP::HandleKill |
( |
Player * |
killer, |
|
|
Unit * |
killed |
|
) |
| |
|
virtual |
452 if (
Group* group = killer->GetGroup())
456 Player* groupGuy = itr->GetSource();
462 if (!groupGuy->IsAtGroupRewardDistance(killed))
virtual void HandleKillImpl(Player *, Unit *)
Definition: OutdoorPvP.h:231
Definition: ObjectGuid.h:32
arena_t NULL
Definition: jemalloc_internal.h:624
bool IsInsideObjective(Player *player) const
Definition: OutdoorPvP.cpp:479
TypeID GetTypeId() const
Definition: Object.h:113
Definition: GroupReference.h:27
virtual void OutdoorPvP::HandleKillImpl |
( |
Player * |
, |
|
|
Unit * |
|
|
) |
| |
|
inlinevirtual |
513 if (itr->second->HandleOpenGo(player, go) >= 0)
OPvPCapturePointMap m_capturePoints
Definition: OutdoorPvP.h:269
void OutdoorPvP::HandlePlayerEnterZone |
( |
Player * |
player, |
|
|
uint32 |
zone |
|
) |
| |
|
protectedvirtual |
void OutdoorPvP::HandlePlayerLeaveZone |
( |
Player * |
player, |
|
|
uint32 |
zone |
|
) |
| |
|
protectedvirtual |
Reimplemented in OutdoorPvPNA, OutdoorPvPZM, OutdoorPvPTF, OutdoorPvPHP, and OutdoorPvPSI.
266 itr->second->HandlePlayerLeave(player);
268 if (!player->GetSession()->PlayerLogout())
270 m_players[player->GetTeamId()].erase(player->GetGUID());
271 TC_LOG_DEBUG(
"outdoorpvp",
"Player %s left an outdoorpvp zone", player->GetName().c_str());
virtual void SendRemoveWorldStates(Player *)
Definition: OutdoorPvP.h:278
OPvPCapturePointMap m_capturePoints
Definition: OutdoorPvP.h:269
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
GuidSet m_players[2]
Definition: OutdoorPvP.h:271
void OutdoorPvP::HandlePlayerResurrects |
( |
Player * |
player, |
|
|
uint32 |
zone |
|
) |
| |
|
protectedvirtual |
591 return plSet.find(player->GetGUID()) != plSet.end();
std::set< ObjectGuid > GuidSet
Definition: ObjectGuid.h:332
GuidSet m_players[2]
Definition: OutdoorPvP.h:271
bool OutdoorPvP::IsInsideObjective |
( |
Player * |
player | ) |
const |
482 if (itr->second->IsInsideObjective(player))
OPvPCapturePointMap m_capturePoints
Definition: OutdoorPvP.h:269
void OutdoorPvP::OnCreatureCreate |
( |
Creature * |
| ) |
|
|
inlineoverridevirtual |
void OutdoorPvP::OnGameObjectCreate |
( |
GameObject * |
go | ) |
|
|
overridevirtual |
Reimplemented from ZoneScript.
622 cp->m_capturePoint = go;
Definition: SharedDefines.h:2094
Definition: OutdoorPvP.h:87
ObjectGuid::LowType GetSpawnId() const
Definition: GameObject.h:902
GameobjectTypes GetGoType() const
Definition: GameObject.h:964
OPvPCapturePoint * GetCapturePoint(ObjectGuid::LowType guid) const
Definition: OutdoorPvP.cpp:575
void OutdoorPvP::OnGameObjectRemove |
( |
GameObject * |
go | ) |
|
|
overridevirtual |
Reimplemented from ZoneScript.
631 cp->m_capturePoint =
NULL;
Definition: SharedDefines.h:2094
Definition: OutdoorPvP.h:87
arena_t NULL
Definition: jemalloc_internal.h:624
ObjectGuid::LowType GetSpawnId() const
Definition: GameObject.h:902
GameobjectTypes GetGoType() const
Definition: GameObject.h:964
OPvPCapturePoint * GetCapturePoint(ObjectGuid::LowType guid) const
Definition: OutdoorPvP.cpp:575
void OutdoorPvP::RegisterZone |
( |
uint32 |
zoneid | ) |
|
|
protected |
#define sOutdoorPvPMgr
Definition: OutdoorPvPMgr.h:105
void OutdoorPvP::SendDefenseMessage |
( |
uint32 |
zoneId, |
|
|
uint32 |
id |
|
) |
| |
void BroadcastWorker(Worker &_worker, uint32 zoneId)
Definition: OutdoorPvP.cpp:642
Definition: OutdoorPvP.cpp:31
Definition: GridNotifiers.h:1400
virtual void OutdoorPvP::SendRemoveWorldStates |
( |
Player * |
| ) |
|
|
inlineprotectedvirtual |
void OutdoorPvP::SendUpdateWorldState |
( |
uint32 |
field, |
|
|
uint32 |
value |
|
) |
| |
412 for (
int i = 0; i < 2; ++i)
415 player->SendUpdateWorldState(field,
value);
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
const FieldDescriptor value
Definition: descriptor.h:1522
bool m_sendUpdate
Definition: OutdoorPvP.h:275
GuidSet m_players[2]
Definition: OutdoorPvP.h:271
void OutdoorPvP::SetMapFromZone |
( |
uint32 |
zone | ) |
|
|
protected |
Definition: DBCStructure.h:37
uint32 MapID
Definition: DBCStructure.h:40
DBCStorage< AreaTableEntry > sAreaTableStore(AreaTablefmt)
Map * m_map
Definition: OutdoorPvP.h:303
#define sMapMgr
Definition: MapManager.h:194
#define ASSERT
Definition: Errors.h:55
bool Instanceable() const
Definition: Map.h:394
virtual bool OutdoorPvP::SetupOutdoorPvP |
( |
| ) |
|
|
inlinevirtual |
void TeamCastSpell(TeamId team, int32 spellId)
Definition: OutdoorPvP.cpp:594
#define OTHER_TEAM(a)
Definition: OutdoorPvP.h:50
int32_t int32
Definition: Define.h:146
void OutdoorPvP::TeamCastSpell |
( |
TeamId |
team, |
|
|
int32 |
spellId |
|
) |
| |
|
protected |
598 for (GuidSet::iterator itr =
m_players[team].begin(); itr !=
m_players[team].end(); ++itr)
600 player->CastSpell(player, (
uint32)spellId,
true);
604 for (GuidSet::iterator itr =
m_players[team].begin(); itr !=
m_players[team].end(); ++itr)
606 player->RemoveAura((
uint32)-spellId);
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
uint32_t uint32
Definition: Define.h:150
GuidSet m_players[2]
Definition: OutdoorPvP.h:271
bool OutdoorPvP::m_sendUpdate |
|
protected |
The documentation for this class was generated from the following files: