2012-07-29 08:07:22 -04:00
|
|
|
|
2012-07-15 16:36:34 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Item.h"
|
|
|
|
#include "../cWorld.h"
|
|
|
|
|
2012-07-29 08:07:22 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cItemSugarcaneHandler :
|
|
|
|
public cItemHandler
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
cItemSugarcaneHandler(int a_ItemID)
|
|
|
|
: cItemHandler(a_ItemID)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-07-16 15:20:37 -04:00
|
|
|
virtual bool IsPlaceable() override
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2012-07-16 15:20:37 -04:00
|
|
|
virtual BLOCKTYPE GetBlockType() override
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
return E_BLOCK_SUGARCANE;
|
|
|
|
}
|
|
|
|
|
2012-07-29 08:07:22 -04:00
|
|
|
virtual NIBBLETYPE GetBlockMeta(short a_ItemDamage) override
|
2012-07-15 16:36:34 -04:00
|
|
|
{
|
|
|
|
return 0; //Not grown yet
|
|
|
|
}
|
2012-07-29 08:07:22 -04:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|