294 for (
uint32 team = 0; team < 2; ++team)
307 std::list<Player*> players;
312 for (std::list<Player*>::iterator itr = players.begin(); itr != players.end(); ++itr)
314 Player*
const player = *itr;
315 if (player->IsOutdoorPvPActive())
317 if (
m_activePlayers[player->GetTeamId()].insert(player->GetGUID()).second)
336 if (fact_diff < -maxDiff)
337 fact_diff = -maxDiff;
347 if (fact_diff > maxDiff)
374 else if (oldValue *
m_value <= 0)
380 else if (Challenger ==
HORDE)
TeamId m_team
Definition: OutdoorPvP.h:167
GuidSet m_activePlayers[2]
Definition: OutdoorPvP.h:155
Definition: OutdoorPvP.h:46
virtual void ChangeTeam(TeamId)
Definition: OutdoorPvP.h:119
Definition: OutdoorPvP.h:44
Definition: GridNotifiers.h:1188
virtual void HandlePlayerLeave(Player *player)
Definition: OutdoorPvP.cpp:69
void VisitNearbyWorldObject(float const &radius, NOTIFIER ¬ifier) const
Definition: Object.h:589
float m_value
Definition: OutdoorPvP.h:165
Definition: GridNotifiers.h:510
bool IsWithinDistInMap(WorldObject const *obj, float dist2compare, bool is3D=true) const
Definition: Object.cpp:1663
Definition: SharedDefines.h:994
Definition: SharedDefines.h:1000
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
virtual void SendChangePhase()
Definition: OutdoorPvP.cpp:76
Definition: OutdoorPvP.h:43
#define OUTDOORPVP_OBJECTIVE_UPDATE_INTERVAL
Definition: OutdoorPvPMgr.h:21
uint32_t uint32
Definition: Define.h:150
virtual bool HandlePlayerEnter(Player *player)
Definition: OutdoorPvP.cpp:58
GameObjectTemplate const * GetGOInfo() const
Definition: GameObject.h:894
Definition: SharedDefines.h:992
Definition: OutdoorPvP.h:45
GameObject * m_capturePoint
Definition: OutdoorPvP.h:133
TeamId
Definition: SharedDefines.h:990
Definition: SharedDefines.h:999
float m_maxValue
Definition: OutdoorPvP.h:158
Definition: OutdoorPvP.h:42
float m_minValue
Definition: OutdoorPvP.h:159
struct GameObjectTemplate::@221::@252 controlZone
virtual void ChangeState()=0
Definition: ObjectGuid.h:189
Definition: OutdoorPvP.h:47
Definition: SharedDefines.h:993
ObjectiveStates m_OldState
Definition: OutdoorPvP.h:170
ObjectiveStates m_State
Definition: OutdoorPvP.h:171
float m_maxSpeed
Definition: OutdoorPvP.h:162