2012-07-15 16:36:34 -04:00
|
|
|
#pragma once
|
|
|
|
#include "Block.h"
|
|
|
|
|
|
|
|
|
|
|
|
class cBlockFlowerHandler : public cBlockHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cBlockFlowerHandler(BLOCKTYPE a_BlockID)
|
|
|
|
: cBlockHandler(a_BlockID)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-07-16 15:20:37 -04:00
|
|
|
virtual NIBBLETYPE GetDropMeta(NIBBLETYPE a_BlockMeta) override
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-07-16 15:20:37 -04:00
|
|
|
virtual bool CanBeAt(cWorld *a_World, int a_X, int a_Y, int a_Z) override
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
return IsBlockTypeOfDirt(a_World->GetBlock(a_X, a_Y - 1, a_Z));
|
|
|
|
}
|
|
|
|
|
2012-07-16 15:20:37 -04:00
|
|
|
virtual bool AllowBlockOnTop() override
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2012-07-16 15:20:37 -04:00
|
|
|
virtual bool CanBePlacedOnSide() override
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
};
|