|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <OutdoorPvPTF.h>
Public Member Functions | |
| void | ChangeState () OVERRIDE |
| void | FillInitialWorldStates (WorldStateBuilder &builder) OVERRIDE |
| bool | HandlePlayerEnter (Player *player) OVERRIDE |
| void | HandlePlayerLeave (Player *player) OVERRIDE |
| OPvPCapturePointTF (OutdoorPvP *pvp, OutdoorPvPTF_TowerType type) | |
| void | SendChangePhase () OVERRIDE |
| bool | Update (uint32 diff) OVERRIDE |
| void | UpdateTowerState () |
| Public Member Functions inherited from OPvPCapturePoint | |
| void | AddCre (uint32 type, uint32 guid, uint32 entry=0) |
| void | AddGO (uint32 type, uint32 guid, uint32 entry=0) |
| virtual bool | CanTalkTo (Player *player, Creature *c, GossipMenuItems const &gso) |
| virtual void | ChangeTeam (TeamId) |
| virtual void | DeleteSpawns () |
| virtual bool | HandleCustomSpell (Player *player, uint32 spellId, GameObject *go) |
| virtual bool | HandleDropFlag (Player *player, uint32 spellId) |
| virtual bool | HandleGossipOption (Player *player, uint64 guid, uint32 gossipid) |
| virtual int32 | HandleOpenGo (Player *player, uint64 guid) |
| bool | IsInsideObjective (Player *player) const |
| OPvPCapturePoint (OutdoorPvP *pvp) | |
| void | SendObjectiveComplete (uint32 id, uint64 guid) |
| void | SendUpdateWorldState (uint32 field, uint32 value) |
| 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) |
| virtual | ~OPvPCapturePoint () |
Protected Attributes | |
| uint32 | m_TowerState |
| OutdoorPvPTF_TowerType | m_TowerType |
| Protected Attributes inherited from OPvPCapturePoint | |
| PlayerSet | m_activePlayers [2] |
| std::map< uint32, uint64 > | m_Creatures |
| std::map< uint64, uint32 > | m_CreatureTypes |
| float | m_maxSpeed |
| float | m_maxValue |
| float | m_minValue |
| uint32 | m_neutralValuePct |
| std::map< uint32, uint64 > | m_Objects |
| std::map< uint64, uint32 > | m_ObjectTypes |
| ObjectiveStates | m_OldState |
| OutdoorPvP * | m_PvP |
| ObjectiveStates | m_State |
| TeamId | m_team |
| float | m_value |
Additional Inherited Members | |
| Public Attributes inherited from OPvPCapturePoint | |
| GameObject * | m_capturePoint |
| uint32 | m_capturePointGUID |
| Protected Member Functions inherited from OPvPCapturePoint | |
| bool | AddCreature (uint32 type, uint32 entry, uint32 teamval, uint32 map, float x, float y, float z, float o, uint32 spawntimedelay=0) |
| 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 | DelCapturePoint () |
| bool | DelCreature (uint32 type) |
| bool | DelObject (uint32 type) |
Definition at line 112 of file OutdoorPvPTF.h.
| OPvPCapturePointTF::OPvPCapturePointTF | ( | OutdoorPvP * | pvp, |
| OutdoorPvPTF_TowerType | type ) |
Definition at line 32 of file OutdoorPvPTF.cpp.
References m_TowerState, m_TowerType, OPvPCapturePoint::OPvPCapturePoint(), OPvPCapturePoint::SetCapturePointData(), TF_TOWERSTATE_N, and TFCapturePoints.
|
virtual |
Implements OPvPCapturePoint.
Definition at line 270 of file OutdoorPvPTF.cpp.
References HashMapHolder< T >::Find(), 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_capturePointGUID, 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, GameObject::SetGoArtKit(), sObjectMgr, sWorld, TF_ALLY_QUEST, TF_HORDE_QUEST, TF_TOWER_NUM, TF_TOWERSTATE_A, TF_TOWERSTATE_H, TF_TOWERSTATE_N, and UpdateTowerState().
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 38 of file OutdoorPvPTF.cpp.
References WorldStateBuilder::AppendState(), m_TowerState, m_TowerType, TF_TOWERSTATE_A, TF_TOWERSTATE_H, TF_TOWERSTATE_N, and TFTowerWorldStates.
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 102 of file OutdoorPvPTF.cpp.
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.
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 115 of file OutdoorPvPTF.cpp.
References OPvPCapturePoint::HandlePlayerLeave(), Player::SendUpdateWorldState(), and TF_UI_TOWER_SLIDER_DISPLAY.
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 337 of file OutdoorPvPTF.cpp.
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.
|
virtual |
Reimplemented from OPvPCapturePoint.
Definition at line 260 of file OutdoorPvPTF.cpp.
References OPvPCapturePoint::m_activePlayers, OPvPCapturePoint::m_PvP, and OPvPCapturePoint::Update().
| void OPvPCapturePointTF::UpdateTowerState | ( | ) |
Definition at line 95 of file OutdoorPvPTF.cpp.
References OPvPCapturePoint::m_PvP, m_TowerState, m_TowerType, TF_TOWERSTATE_A, TF_TOWERSTATE_H, TF_TOWERSTATE_N, and TFTowerWorldStates.
Referenced by ChangeState().
|
protected |
Definition at line 128 of file OutdoorPvPTF.h.
Referenced by ChangeState(), FillInitialWorldStates(), OPvPCapturePointTF(), and UpdateTowerState().
|
protected |
Definition at line 127 of file OutdoorPvPTF.h.
Referenced by FillInitialWorldStates(), OPvPCapturePointTF(), and UpdateTowerState().