1
0
Fork 0
cuberite-2a/src/UI/BeaconWindow.h

41 lines
599 B
C
Raw Normal View History

2014-12-13 14:06:55 +00:00
// BeaconWindow.h
// Representing the UI window for the beacon block
#pragma once
#include "Window.h"
#include "../Entities/Player.h"
class cBeaconWindow :
public cWindow
{
2020-04-13 16:38:06 +00:00
using Super = cWindow;
2014-12-13 14:06:55 +00:00
public:
cBeaconWindow(cBeaconEntity * a_Beacon);
2014-12-13 14:06:55 +00:00
cBeaconEntity * GetBeaconEntity(void) const { return m_Beacon; }
2016-02-05 21:45:45 +00:00
2015-03-10 18:40:53 +00:00
virtual void DistributeStack(cItem & a_ItemStack, int a_Slot, cPlayer & a_Player, cSlotArea * a_ClickedArea, bool a_ShouldApply) override;
2014-12-13 14:06:55 +00:00
// cWindow Overrides:
2015-03-10 18:40:53 +00:00
virtual void OpenedByPlayer(cPlayer & a_Player) override;
2014-12-13 14:06:55 +00:00
protected:
cBeaconEntity * m_Beacon;
};