2012-07-15 16:36:34 -04:00
|
|
|
#pragma once
|
|
|
|
#include "Block.h"
|
|
|
|
|
|
|
|
|
|
|
|
class cBlockMelonHandler : public cBlockHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cBlockMelonHandler(BLOCKTYPE a_BlockID)
|
|
|
|
: cBlockHandler(a_BlockID)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-07-16 15:20:37 -04:00
|
|
|
virtual int GetDropID() override
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
return E_ITEM_MELON_SLICE;
|
|
|
|
}
|
|
|
|
|
2012-07-16 15:20:37 -04:00
|
|
|
virtual char GetDropCount() override
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
MTRand r1;
|
2012-07-16 14:20:35 -04:00
|
|
|
return (char)(3 + r1.randInt(4));
|
2012-07-15 16:36:34 -04:00
|
|
|
}
|
2012-09-11 08:01:34 -04:00
|
|
|
|
|
|
|
virtual AString GetStepSound(void) override
|
|
|
|
{
|
|
|
|
return "step.wood";
|
|
|
|
}
|
|
|
|
};
|