2014-12-13 09:06:55 -05:00
|
|
|
|
|
|
|
// BeaconWindow.h
|
|
|
|
|
|
|
|
// Representing the UI window for the beacon block
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Window.h"
|
|
|
|
#include "../Entities/Player.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cBeaconWindow :
|
|
|
|
public cWindow
|
|
|
|
{
|
|
|
|
typedef cWindow super;
|
|
|
|
|
|
|
|
public:
|
2015-03-10 14:40:53 -04:00
|
|
|
cBeaconWindow(int a_BlockX, int a_BlockY, int a_BlockZ, cBeaconEntity * a_Beacon);
|
2014-12-13 12:49:11 -05:00
|
|
|
|
2014-12-13 09:06:55 -05:00
|
|
|
cBeaconEntity * GetBeaconEntity(void) const { return m_Beacon; }
|
2014-12-13 12:49:11 -05:00
|
|
|
|
2015-03-10 14:40:53 -04:00
|
|
|
virtual void DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) override;
|
2014-12-13 12:49:11 -05:00
|
|
|
|
2014-12-13 09:06:55 -05:00
|
|
|
// cWindow Overrides:
|
2015-03-10 14:40:53 -04:00
|
|
|
virtual void OpenedByPlayer(cPlayer & a_Player) override;
|
2014-12-13 09:06:55 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
cBeaconEntity * m_Beacon;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|