summaryrefslogtreecommitdiffstats
path: root/Tools/AnvilStats/Statistics.h
diff options
context:
space:
mode:
authorAlexander Lyons Harkness <me@bearbin.net>2017-12-23 13:49:08 +0100
committerAlexander Lyons Harkness <me@bearbin.net>2017-12-24 15:23:23 +0100
commit1926181cb7c8570fe57ec1b39d4241b9dd156333 (patch)
tree8ac9c6f24285846fa3f97f0a4ade9b0f9996f295 /Tools/AnvilStats/Statistics.h
parentFixed item ID raw rabbit (#4103) (diff)
downloadcuberite-1926181cb7c8570fe57ec1b39d4241b9dd156333.tar
cuberite-1926181cb7c8570fe57ec1b39d4241b9dd156333.tar.gz
cuberite-1926181cb7c8570fe57ec1b39d4241b9dd156333.tar.bz2
cuberite-1926181cb7c8570fe57ec1b39d4241b9dd156333.tar.lz
cuberite-1926181cb7c8570fe57ec1b39d4241b9dd156333.tar.xz
cuberite-1926181cb7c8570fe57ec1b39d4241b9dd156333.tar.zst
cuberite-1926181cb7c8570fe57ec1b39d4241b9dd156333.zip
Diffstat (limited to 'Tools/AnvilStats/Statistics.h')
-rw-r--r--Tools/AnvilStats/Statistics.h30
1 files changed, 13 insertions, 17 deletions
diff --git a/Tools/AnvilStats/Statistics.h b/Tools/AnvilStats/Statistics.h
index 1b012e283..2c8c61685 100644
--- a/Tools/AnvilStats/Statistics.h
+++ b/Tools/AnvilStats/Statistics.h
@@ -35,19 +35,19 @@ public:
UInt64 m_PerHeightSpawners[256][entMax + 1]; // First dimension is the height, second dimension is spawned entity type
int m_MinChunkX, m_MaxChunkX; // X coords range
int m_MinChunkZ, m_MaxChunkZ; // Z coords range
-
+
Int64 m;
UInt64 m_SpawnerEntity[entMax + 1];
-
+
cStats(void);
void Add(const cStats & a_Stats);
void UpdateCoordsRange(int a_ChunkX, int a_ChunkZ);
} ;
-
+
cStatistics(void);
-
+
const cStats & GetStats(void) const { return m_Stats; }
-
+
protected:
cStats m_Stats;
@@ -73,9 +73,9 @@ protected:
const NIBBLETYPE * a_BlockLight,
const NIBBLETYPE * a_BlockSkyLight
) override;
-
+
virtual bool OnEmptySection(unsigned char a_Y) override;
-
+
virtual bool OnSectionsFinished(void) override { return false; } // continue processing
virtual bool OnEntity(
@@ -90,20 +90,20 @@ protected:
cParsedNBT & a_NBT,
int a_NBTTag
) override;
-
+
virtual bool OnTileEntity(
const AString & a_EntityType,
int a_PosX, int a_PosY, int a_PosZ,
cParsedNBT & a_NBT,
int a_NBTTag
) override;
-
+
virtual bool OnTileTick(
int a_BlockType,
int a_TicksLeft,
int a_PosX, int a_PosY, int a_PosZ
) override;
-
+
void OnSpawner(cParsedNBT & a_NBT, int a_TileEntityTag);
} ;
@@ -117,16 +117,16 @@ class cStatisticsFactory :
public:
cStatisticsFactory(void);
virtual ~cStatisticsFactory();
-
+
virtual cCallback * CreateNewCallback(void)
{
return new cStatistics;
}
-
+
protected:
// The results, combined, are stored here:
cStatistics::cStats m_CombinedStats;
-
+
clock_t m_BeginTick;
void JoinResults(void);
@@ -138,7 +138,3 @@ protected:
void SaveSpawners(void);
void SavePerHeightSpawners(void);
} ;
-
-
-
-