20 std::pair<tMonsterToDistance::iterator, bool> result =
m_MonsterToDistance.insert(tMonsterToDistance::value_type(&a_Monster, newDistanceAndChunk));
23 ASSERT(!
"A collected Monster was not found inside distance map using find(), but insert() said there already is a key for it");
28 if (a_Distance < it->second.m_Distance)
30 it->second.m_Distance = a_Distance;
31 it->second.m_Chunk = &a_Chunk;
62 a_DistanceMin *= a_DistanceMin;
63 a_DistanceMax *= a_DistanceMax;
74 if ((a_DistanceMin == 1.0) || (itr->first > a_DistanceMin))
82 if ((a_DistanceMax != 1.0) && (itr->first > a_DistanceMax))
void CollectMob(cEntity &a_Monster, cChunk &a_Chunk, double a_Distance)
tDistanceToMonster m_DistanceToMonster
sIterablePair getMobWithinThosesDistances(double a_DistanceMin, double a_DistanceMax)
std::set< cChunk * > m_EligibleForSpawnChunks
tMonsterToDistance m_MonsterToDistance
tDistanceToMonster::const_iterator m_Begin
tDistanceToMonster::const_iterator m_End