summaryrefslogblamecommitdiffstats
path: root/source/Items/ItemDoor.h
blob: 949ad833a53afe1ece2cbc0bf547f0b253ec6472 (plain) (tree)
1
2
3
4
5
6
7
8
9
 

             

                         



                                             

                                           



          
                                            



                             
                                                  
          
                                                                                                     


          

#pragma once

#include "ItemHandler.h"
#include "../World.h"

class cItemDoorHandler : public cItemHandler
{
public:
	cItemDoorHandler(int a_ItemType)
		: cItemHandler(a_ItemType)
	{

	}

	virtual bool IsPlaceable() override
	{
		return true;
	}

	virtual BLOCKTYPE GetBlockType() override
	{
		return (m_ItemType == E_ITEM_WOODEN_DOOR) ? E_BLOCK_WOODEN_DOOR : E_BLOCK_IRON_DOOR;
	}

};