2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2012-09-23 15:09:57 -07:00
|
|
|
#include "Simulator.h"
|
2012-10-13 02:53:28 -07:00
|
|
|
#include "../BlockEntity.h"
|
|
|
|
#include "../Vector3i.h"
|
2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cSandSimulator : public cSimulator
|
|
|
|
{
|
|
|
|
public:
|
2013-02-28 05:39:20 -08:00
|
|
|
cSandSimulator(cWorld & a_World);
|
2012-06-14 06:06:06 -07:00
|
|
|
~cSandSimulator();
|
|
|
|
|
2012-09-30 09:37:44 -07:00
|
|
|
virtual void Simulate( float a_Dt ) override;
|
2012-06-14 06:06:06 -07:00
|
|
|
|
2012-10-03 01:52:11 -07:00
|
|
|
virtual bool IsAllowedBlock( BLOCKTYPE a_BlockType ) override;
|
|
|
|
virtual bool IsPassable( BLOCKTYPE a_BlockType );
|
2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
protected:
|
2013-02-27 23:42:45 -08:00
|
|
|
virtual void AddBlock(int a_BlockX, int a_BlockY, int a_BlockZ, cChunk * a_Chunk) override;
|
2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
typedef std::list <Vector3i> BlockList;
|
|
|
|
BlockList * m_Blocks;
|
|
|
|
BlockList * m_Buffer;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|