2012-07-15 16:36:34 -04:00
|
|
|
#pragma once
|
|
|
|
#include "Block.h"
|
|
|
|
|
|
|
|
|
|
|
|
class cBlockFireHandler : public cBlockHandler
|
|
|
|
{
|
|
|
|
public:
|
2012-07-16 15:20:37 -04:00
|
|
|
cBlockFireHandler(BLOCKTYPE a_BlockID)
|
|
|
|
: cBlockHandler(a_BlockID)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-08-19 06:44:19 -04:00
|
|
|
virtual void OnDigging(cWorld *a_World, cPlayer *a_Player, int a_X, int a_Y, int a_Z) override
|
2012-07-16 15:20:37 -04:00
|
|
|
{
|
|
|
|
a_World->DigBlock(a_X, a_Y, a_Z);
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual char GetDropCount() override
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual bool IsClickedThrough() override
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
2012-07-15 16:36:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
};
|