2014-03-23 18:32:45 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "BlockHandler.h"
|
2014-03-28 18:51:30 -04:00
|
|
|
#include "Entities/Pickup.h"
|
2014-03-23 18:32:45 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cBlockLilypadHandler :
|
|
|
|
public cBlockHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cBlockLilypadHandler(BLOCKTYPE a_BlockType)
|
|
|
|
: cBlockHandler(a_BlockType)
|
|
|
|
{
|
|
|
|
}
|
2014-03-28 18:51:30 -04:00
|
|
|
|
|
|
|
virtual void ConvertToPickups(cItems & a_Pickups, NIBBLETYPE a_BlockMeta) override
|
2014-03-23 18:32:45 -04:00
|
|
|
{
|
2014-03-28 18:51:30 -04:00
|
|
|
// Reset meta to zero
|
|
|
|
a_Pickups.push_back(cItem(E_BLOCK_LILY_PAD, 1, 0));
|
2014-03-23 18:32:45 -04:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|