mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-23 22:13:37 +00:00
33 lines
1.1 KiB
C++
33 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "Container.h"
|
|
|
|
class Player;
|
|
|
|
class CompoundContainer : public Container {
|
|
private:
|
|
int name;
|
|
std::shared_ptr<Container> c1, c2;
|
|
|
|
public:
|
|
CompoundContainer(int name, std::shared_ptr<Container> c1,
|
|
std::shared_ptr<Container> c2);
|
|
|
|
virtual int getContainerType();
|
|
virtual unsigned int getContainerSize();
|
|
virtual bool contains(std::shared_ptr<Container> c);
|
|
virtual std::wstring getName();
|
|
virtual std::wstring getCustomName();
|
|
virtual bool hasCustomName();
|
|
virtual std::shared_ptr<ItemInstance> getItem(unsigned int slot);
|
|
virtual std::shared_ptr<ItemInstance> removeItem(unsigned int slot, int i);
|
|
virtual std::shared_ptr<ItemInstance> removeItemNoUpdate(int slot);
|
|
virtual void setItem(unsigned int slot, std::shared_ptr<ItemInstance> item);
|
|
virtual int getMaxStackSize();
|
|
virtual void setChanged();
|
|
virtual bool stillValid(std::shared_ptr<Player> player);
|
|
|
|
virtual void startOpen();
|
|
virtual void stopOpen();
|
|
virtual bool canPlaceItem(int slot, std::shared_ptr<ItemInstance> item);
|
|
}; |