2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
// 4J Stu Added
|
|
|
|
|
// In InventoryMenu.java they create an anoymous class while creating some slot. I have moved the content
|
|
|
|
|
// of that anonymous class to here
|
|
|
|
|
|
|
|
|
|
#include "Slot.h"
|
|
|
|
|
|
|
|
|
|
class Container;
|
|
|
|
|
|
|
|
|
|
class ArmorSlot : public Slot
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
const int slotNum;
|
|
|
|
|
|
|
|
|
|
public:
|
2026-03-02 17:37:16 +07:00
|
|
|
ArmorSlot(int slotNum, shared_ptr<Container> container, int id, int x, int y);
|
2026-03-01 12:16:08 +08:00
|
|
|
virtual ~ArmorSlot() {}
|
|
|
|
|
|
|
|
|
|
virtual int getMaxStackSize();
|
2026-03-02 17:37:16 +07:00
|
|
|
virtual bool mayPlace(shared_ptr<ItemInstance> item);
|
2026-03-01 12:16:08 +08:00
|
|
|
Icon *getNoItemIcon();
|
2026-03-02 17:37:16 +07:00
|
|
|
//virtual bool mayCombine(shared_ptr<ItemInstance> item); // 4J Added
|
|
|
|
|
//virtual shared_ptr<ItemInstance> combine(shared_ptr<ItemInstance> item); // 4J Added
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|