987 float radius = capturePoint->GetGOInfo()->controlZone.radius;
989 for (
uint8 team = 0; team < 2; ++team)
995 if (!capturePoint->IsWithinDistInMap(player, radius) || !player->IsOutdoorPvPActive())
1005 std::list<Player*> players;
1008 capturePoint->VisitNearbyWorldObject(radius, searcher);
1010 for (std::list<Player*>::iterator itr = players.begin(); itr != players.end(); ++itr)
1011 if ((*itr)->IsOutdoorPvPActive())
1012 if (
m_activePlayers[(*itr)->GetTeamId()].insert((*itr)->GetGUID()).second)
1030 if (fact_diff < -maxDiff)
1031 fact_diff = -maxDiff;
1041 if (fact_diff > maxDiff)
1042 fact_diff = maxDiff;
1068 else if (oldValue *
m_value <= 0)
1074 else if (Challenger ==
HORDE)
virtual void SendChangePhase()
Definition: Battlefield.cpp:906
Definition: Battlefield.h:49
Definition: Battlefield.h:50
virtual GuidSet::iterator HandlePlayerLeave(Player *player)
Definition: Battlefield.cpp:891
float m_maxSpeed
Definition: Battlefield.h:126
Definition: GridNotifiers.h:1188
Definition: Battlefield.h:53
Definition: Battlefield.h:52
Definition: Battlefield.h:51
BattlefieldObjectiveStates m_State
Definition: Battlefield.h:134
bool fuzzyNe(double a, double b)
Definition: g3dmath.h:861
Definition: GridNotifiers.h:510
ObjectGuid m_capturePointGUID
Definition: Battlefield.h:146
float m_minValue
Definition: Battlefield.h:123
Definition: SharedDefines.h:994
Definition: SharedDefines.h:1000
virtual void ChangeTeam(TeamId)
Definition: Battlefield.h:106
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
Definition: Battlefield.h:65
TeamId m_team
Definition: Battlefield.h:130
uint32_t uint32
Definition: Define.h:150
Definition: SharedDefines.h:992
Definition: GameObject.h:880
TeamId
Definition: SharedDefines.h:990
Definition: SharedDefines.h:999
float m_maxValue
Definition: Battlefield.h:122
virtual bool HandlePlayerEnter(Player *player)
Definition: Battlefield.cpp:876
uint8_t uint8
Definition: Define.h:152
GuidSet m_activePlayers[BG_TEAMS_COUNT]
Definition: Battlefield.h:119
BattlefieldObjectiveStates m_OldState
Definition: Battlefield.h:133
Battlefield * m_Bf
Definition: Battlefield.h:140
Definition: Battlefield.h:48
Definition: SharedDefines.h:993
float m_value
Definition: Battlefield.h:129
bool fuzzyEq(double a, double b)
Definition: g3dmath.h:857
GameObject * GetGameObject(ObjectGuid guid)
Definition: Battlefield.cpp:852