diff options
author | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-07 22:19:56 +0200 |
---|---|---|
committer | mgueydan <gueydan.mathieuÃ@gmail.com> | 2013-09-07 22:19:56 +0200 |
commit | d2eb58f27780a3c65fedd0d21d152ee8866ebb86 (patch) | |
tree | 05160377f78b97b4916956eebfd07f8a830a8916 /source/Chunk.h | |
parent | Adding a getType in Monster that return an enum instead of an int or char (diff) | |
download | cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar.gz cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar.bz2 cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar.lz cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar.xz cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.tar.zst cuberite-d2eb58f27780a3c65fedd0d21d152ee8866ebb86.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Chunk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Chunk.h b/source/Chunk.h index c979b7928..5f2bba3d8 100644 --- a/source/Chunk.h +++ b/source/Chunk.h @@ -49,6 +49,7 @@ class cPickup; class cChunkDataSerializer; class cBlockArea; class cFluidSimulatorData; +class cMobCensus; typedef std::list<cClientHandle *> cClientHandleList; typedef cItemCallback<cEntity> cEntityCallback; @@ -124,6 +125,9 @@ public: /// Sets or resets the internal flag that prevents chunk from being unloaded void Stay(bool a_Stay = true); + /// Recence all mobs proximities to players in order to know what to do with them + void CollectMobCensus(cMobCensus& toFill); + void Tick(float a_Dt); int GetPosX(void) const { return m_PosX; } |