2014-12-13 14:06:55 +00:00
|
|
|
|
|
|
|
// AnvilWindow.h
|
|
|
|
|
|
|
|
// Representing the UI window for the anvil block
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Window.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-04-13 16:38:06 +00:00
|
|
|
class cAnvilWindow:
|
2014-12-13 14:06:55 +00:00
|
|
|
public cWindow
|
|
|
|
{
|
2020-04-13 16:38:06 +00:00
|
|
|
using Super = cWindow;
|
2014-12-13 14:06:55 +00:00
|
|
|
|
|
|
|
public:
|
2020-04-13 16:38:06 +00:00
|
|
|
|
2020-07-04 21:49:17 +00:00
|
|
|
cAnvilWindow(Vector3i a_BlockPos);
|
2014-12-13 14:06:55 +00:00
|
|
|
|
|
|
|
/** Gets the repaired item name. */
|
2015-03-10 18:40:53 +00:00
|
|
|
AString GetRepairedItemName(void) const;
|
2014-12-13 14:06:55 +00:00
|
|
|
|
|
|
|
/** Set the repaired item name. */
|
2015-03-10 18:40:53 +00:00
|
|
|
void SetRepairedItemName(const AString & a_Name, cPlayer * a_Player);
|
2014-12-13 14:06:55 +00:00
|
|
|
|
|
|
|
/** Gets the Position from the Anvil */
|
2020-07-04 21:49:17 +00:00
|
|
|
const Vector3i & GetBlockPos() { return m_BlockPos; }
|
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 17:49:11 +00:00
|
|
|
|
2014-12-13 14:06:55 +00:00
|
|
|
protected:
|
|
|
|
cSlotAreaAnvil * m_AnvilSlotArea;
|
|
|
|
AString m_RepairedItemName;
|
2020-07-04 21:49:17 +00:00
|
|
|
Vector3i m_BlockPos;
|
2014-12-13 14:06:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|