summaryrefslogblamecommitdiffstats
path: root/source/Blocks/BlockSign.h
blob: 23645d0d28b1eef32f1ded3ea160b97019d86591 (plain) (tree)
1
2
3
4
5
6
7
8
 
             
 



                          
 





                             

        

                                                 
          
          
         
 
                                                                                           
          
                                                               
          
 
         
                                                        


                              
         
 
                                                         


                                    




    

#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";
	}
} ;