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

41 lines
642 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
{
typedef cWindow super;
public:
2015-03-10 18:40:53 +00:00
cBeaconWindow(int a_BlockX, int a_BlockY, int a_BlockZ, cBeaconEntity * a_Beacon);
2014-12-13 14:06:55 +00:00
cBeaconEntity * GetBeaconEntity(void) const { return m_Beacon; }
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;
};