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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
virtual int GetDropID()
|
|
|
|
{
|
|
|
|
return E_ITEM_MELON_SLICE;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual char GetDropCount()
|
|
|
|
{
|
|
|
|
MTRand r1;
|
2012-07-16 14:20:35 -04:00
|
|
|
return (char)(3 + r1.randInt(4));
|
2012-07-15 16:36:34 -04:00
|
|
|
}
|
|
|
|
};
|