From c1e6fb454fc6d9e15e93665c9184503c0af6021f Mon Sep 17 00:00:00 2001 From: "keyboard.osh@gmail.com" Date: Sat, 4 May 2013 06:25:58 +0000 Subject: Explosion: Switched from a cube to a sphere. Implemented using cBlockArea and moved block changing code to ChunkMap git-svn-id: http://mc-server.googlecode.com/svn/trunk@1441 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ChunkMap.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/ChunkMap.h') diff --git a/source/ChunkMap.h b/source/ChunkMap.h index e3dfdc88f..a2fb5abff 100644 --- a/source/ChunkMap.h +++ b/source/ChunkMap.h @@ -197,6 +197,9 @@ public: /// Calls the callback for each entity in the specified chunk; returns true if all entities processed, false if the callback aborted by returning true bool ForEachEntityInChunk(int a_ChunkX, int a_ChunkZ, cEntityCallback & a_Callback); // Lua-accessible + + // Destroys and returns a list of blocks destroyed in the explosion at the specified coordinates + cVector3iArray * DoExplosiontAt(float a_ExplosionSize, int a_BlockX, int a_BlockY, int a_BlockZ); /// Calls the callback if the entity with the specified ID is found, with the entity object as the callback param. Returns true if entity found and callback returned false. bool DoWithEntityByID(int a_UniqueID, cEntityCallback & a_Callback); // Lua-accessible -- cgit v1.2.3