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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void OnClick(cWorld *a_World, cPlayer *a_Player, int a_X, int a_Y, int a_Z) override
|
|
|
|
{
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
};
|