Files
cuberite-2a/source/cSandSimulator.h
T

41 lines
599 B
C++
Raw Normal View History

2011-12-26 20:57:12 +00:00
#pragma once
2011-12-26 20:57:12 +00:00
#include "cSimulator.h"
#include "cBlockEntity.h"
#include "Vector3i.h"
2011-12-26 20:57:12 +00:00
2011-12-26 20:57:12 +00:00
class cWorld;
2011-12-26 20:57:12 +00:00
class cSandSimulator : public cSimulator
{
public:
cSandSimulator( cWorld* a_World );
~cSandSimulator();
virtual void Simulate( float a_Dt );
virtual void WakeUp( int a_X, int a_Y, int a_Z );
2011-12-26 20:57:12 +00:00
virtual bool IsAllowedBlock( char a_BlockID );
virtual bool IsPassable( char a_BlockID );
2011-12-26 20:57:12 +00:00
protected:
virtual void AddBlock(int a_X, int a_Y, int a_Z);
typedef std::list <Vector3i> BlockList;
BlockList * m_Blocks;
BlockList * m_Buffer;
};