AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "OutdoorPvPTF.h"
Public Member Functions | |
OPvPCapturePointTF (OutdoorPvP *pvp, OutdoorPvPTF_TowerType type) | |
bool | Update (uint32 diff) override |
void | ChangeState () override |
void | SendChangePhase () override |
void | FillInitialWorldStates (WorldPacket &data) override |
bool | HandlePlayerEnter (Player *player) override |
void | HandlePlayerLeave (Player *player) override |
void | ResetToTeamControlled (TeamId team) |
void | UpdateTowerState () |
Public Member Functions inherited from OPvPCapturePoint | |
OPvPCapturePoint (OutdoorPvP *pvp) | |
virtual | ~OPvPCapturePoint () |
virtual void | FillInitialWorldStates (WorldPacket &) |
void | SendUpdateWorldState (uint32 field, uint32 value) |
void | SendObjectiveComplete (uint32 id, ObjectGuid guid=ObjectGuid::Empty) |
virtual bool | HandlePlayerEnter (Player *player) |
virtual void | HandlePlayerLeave (Player *player) |
bool | IsInsideObjective (Player *player) const |
virtual bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) |
virtual int32 | HandleOpenGo (Player *player, GameObject *go) |
virtual bool | Update (uint32 diff) |
virtual void | ChangeState ()=0 |
virtual void | ChangeTeam (TeamId) |
virtual void | SendChangePhase () |
virtual bool | HandleGossipOption (Player *player, Creature *creature, uint32 gossipid) |
virtual bool | CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso) |
virtual bool | HandleDropFlag (Player *player, uint32 spellId) |
virtual void | DeleteSpawns () |
void | AddGO (uint32 type, ObjectGuid::LowType guid, uint32 entry=0) |
void | AddCre (uint32 type, ObjectGuid::LowType guid, uint32 entry=0) |
bool | SetCapturePointData (uint32 entry, uint32 map, float x, float y, float z, float o=0, float rotation0=0, float rotation1=0, float rotation2=0, float rotation3=0) |
void | SetSlider (float slider) |
float | GetSlider () |
Protected Attributes | |
OutdoorPvPTF_TowerType | m_TowerType |
uint32 | m_TowerState |
Protected Attributes inherited from OPvPCapturePoint | |
PlayerSet | m_activePlayers [2] |
float | m_maxValue |
float | m_minValue |
float | m_maxSpeed |
float | m_value |
TeamId | m_team |
ObjectiveStates | m_OldState |
ObjectiveStates | m_State |
uint32 | m_neutralValuePct |
OutdoorPvP * | m_PvP |
std::map< uint32, ObjectGuid::LowType > | m_Objects |
std::map< uint32, ObjectGuid::LowType > | m_Creatures |
std::map< ObjectGuid::LowType, uint32 > | m_ObjectTypes |
std::map< ObjectGuid::LowType, uint32 > | m_CreatureTypes |
Additional Inherited Members | |
Public Attributes inherited from OPvPCapturePoint | |
ObjectGuid::LowType | m_capturePointSpawnId |
GameObject * | m_capturePoint |
Protected Member Functions inherited from OPvPCapturePoint | |
bool | AddObject (uint32 type, uint32 entry, uint32 map, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3) |
bool | AddCreature (uint32 type, uint32 entry, uint32 map, float x, float y, float z, float o, uint32 spawntimedelay=0) |
bool | DelCreature (uint32 type) |
bool | DelObject (uint32 type) |
bool | DelCapturePoint () |
OPvPCapturePointTF::OPvPCapturePointTF | ( | OutdoorPvP * | pvp, |
OutdoorPvPTF_TowerType | type | ||
) |
References OPvPCapturePoint::SetCapturePointData(), and TFCapturePoints.
|
overridevirtual |
Implements OPvPCapturePoint.
References ObjectAccessor::FindPlayer(), LANG_OPVP_TF_CAPTURE_A, LANG_OPVP_TF_CAPTURE_H, LANG_OPVP_TF_LOSE_A, LANG_OPVP_TF_LOSE_H, OPvPCapturePoint::m_activePlayers, OPvPCapturePoint::m_capturePointSpawnId, OPvPCapturePoint::m_OldState, OPvPCapturePoint::m_PvP, OPvPCapturePoint::m_State, m_TowerState, OBJECTIVESTATE_ALLIANCE, OBJECTIVESTATE_ALLIANCE_HORDE_CHALLENGE, OBJECTIVESTATE_HORDE, OBJECTIVESTATE_HORDE_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL, OBJECTIVESTATE_NEUTRAL_ALLIANCE_CHALLENGE, OBJECTIVESTATE_NEUTRAL_HORDE_CHALLENGE, OutdoorPvPTFBuffZones, sMapMgr, sObjectMgr, sWorld, TF_ALLY_QUEST, TF_HORDE_QUEST, TF_TOWER_NUM, TF_TOWERSTATE_A, TF_TOWERSTATE_H, TF_TOWERSTATE_N, and UpdateTowerState().
Referenced by ResetToTeamControlled().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References m_TowerState, m_TowerType, TF_TOWERSTATE_A, TF_TOWERSTATE_H, TF_TOWERSTATE_N, and TFTowerWorldStates.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::HandlePlayerEnter(), OPvPCapturePoint::m_maxValue, OPvPCapturePoint::m_neutralValuePct, OPvPCapturePoint::m_value, Player::SendUpdateWorldState(), TF_UI_TOWER_SLIDER_DISPLAY, TF_UI_TOWER_SLIDER_N, and TF_UI_TOWER_SLIDER_POS.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::HandlePlayerLeave(), Player::SendUpdateWorldState(), and TF_UI_TOWER_SLIDER_DISPLAY.
void OPvPCapturePointTF::ResetToTeamControlled | ( | TeamId | team | ) |
References ChangeState(), OPvPCapturePoint::m_OldState, OPvPCapturePoint::m_State, OPvPCapturePoint::m_team, OPvPCapturePoint::m_value, OBJECTIVESTATE_ALLIANCE, OBJECTIVESTATE_HORDE, OBJECTIVESTATE_NEUTRAL, SendChangePhase(), TEAM_ALLIANCE, TEAM_HORDE, and TEAM_NEUTRAL.
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::m_maxValue, OPvPCapturePoint::m_neutralValuePct, OPvPCapturePoint::m_value, OPvPCapturePoint::SendUpdateWorldState(), TF_UI_TOWER_SLIDER_DISPLAY, TF_UI_TOWER_SLIDER_N, and TF_UI_TOWER_SLIDER_POS.
Referenced by ResetToTeamControlled().
|
overridevirtual |
Reimplemented from OPvPCapturePoint.
References OPvPCapturePoint::m_activePlayers, OPvPCapturePoint::m_PvP, and OPvPCapturePoint::Update().
void OPvPCapturePointTF::UpdateTowerState | ( | ) |
References OPvPCapturePoint::m_PvP, m_TowerState, m_TowerType, OutdoorPvP::SendUpdateWorldState(), TF_TOWERSTATE_A, TF_TOWERSTATE_H, TF_TOWERSTATE_N, and TFTowerWorldStates.
Referenced by ChangeState().
|
protected |
Referenced by ChangeState(), FillInitialWorldStates(), and UpdateTowerState().
|
protected |
Referenced by FillInitialWorldStates(), and UpdateTowerState().