summaryrefslogblamecommitdiffstats
path: root/src/Blocks/BlockLilypad.h
blob: 2dd4ec76864b4318e69c2b42b5e7a4f08778f715 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                         
                            




                            
                            
 

                                                   
                                            
         
         
        




                                                                                          




  

#pragma once

#include "BlockHandler.h"
#include "Entities/Pickup.h"




class cBlockLilypadHandler :
	public cBlockHandler
{
public:
	cBlockLilypadHandler(BLOCKTYPE a_BlockType)
		: cBlockHandler(a_BlockType)
	{
	}
	
	virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
	{
		// Reset meta to zero
		a_Pickups.push_back(cItem(E_BLOCK_LILY_PAD, 1, 0));
	}
};