From f7da7c2536b438db92bc28b88c4139d9af15e44f Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 13 Oct 2012 09:53:28 +0000 Subject: Preparation for multiple fluid simulators. Moved all simulators into a subfolder. Replaced cWaterSimulator and cLavaSimulator with a generic cFluidSimulator. Moved original fluid simulation into cClassicFluidSimulator. Fluid simulator parameters (MaxHeight, Falloff) are read from the world.ini file (can have nether-like lava with lower falloff) git-svn-id: http://mc-server.googlecode.com/svn/trunk@956 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/FireSimulator.h | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 source/FireSimulator.h (limited to 'source/FireSimulator.h') diff --git a/source/FireSimulator.h b/source/FireSimulator.h deleted file mode 100644 index 90e6a6062..000000000 --- a/source/FireSimulator.h +++ /dev/null @@ -1,47 +0,0 @@ - -#pragma once - -#include "Simulator.h" -#include "BlockEntity.h" - - - - - -class Vector3i; -class cWorld; - - - - - -class cFireSimulator : public cSimulator -{ -public: - cFireSimulator( cWorld* a_World ); - ~cFireSimulator(); - - virtual void Simulate( float a_Dt ) override; - - virtual bool IsAllowedBlock( BLOCKTYPE a_BlockType ) override; - - virtual bool IsBurnable( BLOCKTYPE a_BlockType ); - virtual bool IsForeverBurnable( BLOCKTYPE a_BlockType ); - virtual bool FiresForever( BLOCKTYPE a_BlockType ); - -protected: - virtual void AddBlock(int a_X, int a_Y, int a_Z) override; - virtual void _AddBlock(int a_X, int a_Y, int a_Z); - virtual bool BurnBlockAround(int a_X, int a_Y, int a_Z); - virtual bool BurnBlock(int a_X, int a_Y, int a_Z); - - typedef std::list BlockList; - BlockList *m_Blocks; - BlockList *m_Buffer; - - BlockList *m_BurningBlocks; -}; - - - - -- cgit v1.2.3