summaryrefslogtreecommitdiffstats
path: root/source/cChunkMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cChunkMap.h')
-rw-r--r--source/cChunkMap.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/source/cChunkMap.h b/source/cChunkMap.h
index f2d1f4468..9cab98221 100644
--- a/source/cChunkMap.h
+++ b/source/cChunkMap.h
@@ -1,8 +1,19 @@
+
#pragma once
+
+
+
+
class cWorld;
class cEntity;
class cChunk;
+class MTRand;
+
+
+
+
+
class cChunkMap
{
public:
@@ -15,7 +26,7 @@ public:
cChunk* GetChunk( int a_X, int a_Y, int a_Z );
void RemoveChunk( cChunk* a_Chunk );
- void Tick( float a_Dt );
+ void Tick( float a_Dt, MTRand & a_TickRand );
void UnloadUnusedChunks();
bool RemoveEntityFromChunk( cEntity & a_Entity, cChunk* a_CalledFrom = 0 );
@@ -24,7 +35,9 @@ public:
cWorld* GetWorld() { return m_World; }
int GetNumChunks();
+
private:
+
class cChunkData
{
public:
@@ -75,3 +88,7 @@ private:
cWorld* m_World;
};
+
+
+
+