2014-12-13 09:06:55 -05:00
|
|
|
|
|
|
|
// AnvilWindow.h
|
|
|
|
|
|
|
|
// Representing the UI window for the anvil block
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Window.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cAnvilWindow :
|
|
|
|
public cWindow
|
|
|
|
{
|
|
|
|
typedef cWindow super;
|
|
|
|
|
|
|
|
public:
|
2015-03-10 14:40:53 -04:00
|
|
|
cAnvilWindow(int a_BlockX, int a_BlockY, int a_BlockZ);
|
2014-12-13 09:06:55 -05:00
|
|
|
|
|
|
|
/** Gets the repaired item name. */
|
2015-03-10 14:40:53 -04:00
|
|
|
AString GetRepairedItemName(void) const;
|
2014-12-13 09:06:55 -05:00
|
|
|
|
|
|
|
/** Set the repaired item name. */
|
2015-03-10 14:40:53 -04:00
|
|
|
void SetRepairedItemName(const AString & a_Name, cPlayer * a_Player);
|
2014-12-13 09:06:55 -05:00
|
|
|
|
|
|
|
/** Gets the Position from the Anvil */
|
2015-03-10 14:40:53 -04:00
|
|
|
void GetBlockPos(int & a_PosX, int & a_PosY, int & a_PosZ);
|
|
|
|
|
|
|
|
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
|
|
|
protected:
|
|
|
|
cSlotAreaAnvil * m_AnvilSlotArea;
|
|
|
|
AString m_RepairedItemName;
|
|
|
|
int m_BlockX, m_BlockY, m_BlockZ;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|