summaryrefslogtreecommitdiffstats
path: root/Tools/AnvilStats/Statistics.h
diff options
context:
space:
mode:
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);
} ;
-
-
-
-