Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cMobProximityCounter Class Reference

#include <MobProximityCounter.h>

Classes

struct  sDistanceAndChunk
 
struct  sIterablePair
 
struct  sMonsterAndChunk
 

Public Types

typedef std::multimap< double, sMonsterAndChunktDistanceToMonster
 
typedef std::map< cEntity *, sDistanceAndChunktMonsterToDistance
 

Public Member Functions

void CollectMob (cEntity &a_Monster, cChunk &a_Chunk, double a_Distance)
 
sIterablePair getMobWithinThosesDistances (double a_DistanceMin, double a_DistanceMax)
 

Protected Member Functions

void convertMaps ()
 

Protected Attributes

tDistanceToMonster m_DistanceToMonster
 
std::set< cChunk * > m_EligibleForSpawnChunks
 
tMonsterToDistance m_MonsterToDistance
 

Detailed Description

Definition at line 11 of file MobProximityCounter.h.

Member Typedef Documentation

◆ tDistanceToMonster

Definition at line 30 of file MobProximityCounter.h.

◆ tMonsterToDistance

Definition at line 29 of file MobProximityCounter.h.

Member Function Documentation

◆ CollectMob()

void cMobProximityCounter::CollectMob ( cEntity a_Monster,
cChunk a_Chunk,
double  a_Distance 
)

Definition at line 13 of file MobProximityCounter.cpp.

◆ convertMaps()

void cMobProximityCounter::convertMaps ( )
protected

Definition at line 43 of file MobProximityCounter.cpp.

◆ getMobWithinThosesDistances()

cMobProximityCounter::sIterablePair cMobProximityCounter::getMobWithinThosesDistances ( double  a_DistanceMin,
double  a_DistanceMax 
)

Definition at line 55 of file MobProximityCounter.cpp.

Member Data Documentation

◆ m_DistanceToMonster

tDistanceToMonster cMobProximityCounter::m_DistanceToMonster
protected

Definition at line 37 of file MobProximityCounter.h.

◆ m_EligibleForSpawnChunks

std::set<cChunk*> cMobProximityCounter::m_EligibleForSpawnChunks
protected

Definition at line 40 of file MobProximityCounter.h.

◆ m_MonsterToDistance

tMonsterToDistance cMobProximityCounter::m_MonsterToDistance
protected

Definition at line 34 of file MobProximityCounter.h.


The documentation for this class was generated from the following files: