2013-07-29 04:13:03 -07:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "ItemHandler.h"
|
|
|
|
#include "../World.h"
|
2013-08-19 02:39:13 -07:00
|
|
|
#include "../Entities/Player.h"
|
2013-07-29 04:13:03 -07:00
|
|
|
|
2013-08-19 02:39:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cItemSwordHandler :
|
|
|
|
public cItemHandler
|
2013-07-29 04:13:03 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
cItemSwordHandler(int a_ItemType)
|
|
|
|
: cItemHandler(a_ItemType)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual bool CanHarvestBlock(BLOCKTYPE a_BlockType) override
|
|
|
|
{
|
|
|
|
return (a_BlockType == E_BLOCK_COBWEB);
|
|
|
|
}
|
2013-08-19 02:39:13 -07:00
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|