#pragma once #include "Container.h" class Player; class CompoundContainer : public Container { private: int name; std::shared_ptr c1, c2; public: CompoundContainer(int name, std::shared_ptr c1, std::shared_ptr c2); virtual int getContainerType(); virtual unsigned int getContainerSize(); virtual bool contains(std::shared_ptr c); virtual std::wstring getName(); virtual std::wstring getCustomName(); virtual bool hasCustomName(); virtual std::shared_ptr getItem(unsigned int slot); virtual std::shared_ptr removeItem(unsigned int slot, int i); virtual std::shared_ptr removeItemNoUpdate(int slot); virtual void setItem(unsigned int slot, std::shared_ptr item); virtual int getMaxStackSize(); virtual void setChanged(); virtual bool stillValid(std::shared_ptr player); virtual void startOpen(); virtual void stopOpen(); virtual bool canPlaceItem(int slot, std::shared_ptr item); };