2012-07-15 16:36:34 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Item.h"
|
|
|
|
#include "../cWorld.h"
|
|
|
|
|
|
|
|
class cItemDoorHandler : public cItemHandler
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cItemDoorHandler(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 (m_ItemID == E_ITEM_WOODEN_DOOR) ? E_BLOCK_WOODEN_DOOR : E_BLOCK_IRON_DOOR;
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|