#pragma once #include "Item.h" #include "Level.h" #include "Gold.h" #include "Diamond.h" #include <vector> class ItemManager { public: ItemManager( ); ~ItemManager( ); ItemManager(const ItemManager&) = delete; ItemManager& operator=(const ItemManager&) = delete; ItemManager(ItemManager&&) = delete; ItemManager& operator=(ItemManager&&) = delete; Item* AddItem(Item* pItem); void Update( float elapsedSec, const Level& level ); void Draw( ) const; void LoadItems(const Level::Info& levelInfo); void SortItems(); size_t Size( ) const; std::vector<Item*>& GetItems(); private: std::vector<Item*> m_pItems; };