43e6840719
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1139 0a769ca7-a7f5-676a-18bf-c427514a06d6
44 lines
597 B
C++
44 lines
597 B
C++
|
|
#pragma once
|
|
|
|
#include "BlockHandler.h"
|
|
#include "../World.h"
|
|
#include "../Sign.h"
|
|
#include "../Player.h"
|
|
|
|
|
|
|
|
|
|
|
|
class cBlockSignHandler :
|
|
public cBlockHandler
|
|
{
|
|
public:
|
|
cBlockSignHandler(BLOCKTYPE a_BlockType)
|
|
: cBlockHandler(a_BlockType)
|
|
{
|
|
}
|
|
|
|
|
|
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
|
|
{
|
|
a_Pickups.push_back(cItem(E_ITEM_SIGN, 1, 0));
|
|
}
|
|
|
|
|
|
virtual bool DoesAllowBlockOnTop(void) override
|
|
{
|
|
return false;
|
|
}
|
|
|
|
|
|
virtual const char * GetStepSound(void) override
|
|
{
|
|
return "step.wood";
|
|
}
|
|
} ;
|
|
|
|
|
|
|
|
|