diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-13 23:28:55 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2013-04-13 23:28:55 +0200 |
commit | f5842062d3f9594d8f22f8938915194d20ebdf5f (patch) | |
tree | 54a92af49ef0e3cff48a22259183399d409c3f89 /source/ChunkMap.h | |
parent | Rewritten entities so that they are owned by individual chunks and ticked within their chunk's Tick() (diff) | |
download | cuberite-f5842062d3f9594d8f22f8938915194d20ebdf5f.tar cuberite-f5842062d3f9594d8f22f8938915194d20ebdf5f.tar.gz cuberite-f5842062d3f9594d8f22f8938915194d20ebdf5f.tar.bz2 cuberite-f5842062d3f9594d8f22f8938915194d20ebdf5f.tar.lz cuberite-f5842062d3f9594d8f22f8938915194d20ebdf5f.tar.xz cuberite-f5842062d3f9594d8f22f8938915194d20ebdf5f.tar.zst cuberite-f5842062d3f9594d8f22f8938915194d20ebdf5f.zip |
Diffstat (limited to 'source/ChunkMap.h')
-rw-r--r-- | source/ChunkMap.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/source/ChunkMap.h b/source/ChunkMap.h index d52b2f263..e3dfdc88f 100644 --- a/source/ChunkMap.h +++ b/source/ChunkMap.h @@ -183,18 +183,15 @@ public: /// Removes the client from all chunks it is present in void RemoveClientFromChunks(cClientHandle * a_Client); - /// Moves the entity from its current chunk to the new chunk specified - void MoveEntityToChunk(cEntity * a_Entity, int a_ChunkX, int a_ChunkZ); - - /// Removes the entity from the chunk specified - void RemoveEntityFromChunk(cEntity * a_Entity, int a_ChunkX, int a_ChunkZ); - /// Adds the entity to its appropriate chunk, takes ownership of the entity pointer void AddEntity(cEntity * a_Entity); /// Returns true if the entity with specified ID is present in the chunks bool HasEntity(int a_EntityID); + /// Removes the entity from its appropriate chunk + void RemoveEntity(cEntity * a_Entity); + /// Calls the callback for each entity in the entire world; returns true if all entities processed, false if the callback aborted by returning true bool ForEachEntity(cEntityCallback & a_Callback); // Lua-accessible |