2018-06-21 01:32:55 +02:00
|
|
|
/*
|
|
|
|
* =====================================================================================
|
|
|
|
*
|
|
|
|
* Filename: InventoryWidget.hpp
|
|
|
|
*
|
|
|
|
* Description:
|
|
|
|
*
|
|
|
|
* Created: 21/06/2018 01:08:40
|
|
|
|
*
|
|
|
|
* Author: Quentin Bazin, <quent42340@gmail.com>
|
|
|
|
*
|
|
|
|
* =====================================================================================
|
|
|
|
*/
|
|
|
|
#ifndef INVENTORYWIDGET_HPP_
|
|
|
|
#define INVENTORYWIDGET_HPP_
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Inventory.hpp"
|
|
|
|
#include "ItemWidget.hpp"
|
2018-06-21 05:45:17 +02:00
|
|
|
#include "Transformable.hpp"
|
2018-06-21 01:32:55 +02:00
|
|
|
|
2018-06-21 05:45:17 +02:00
|
|
|
class InventoryWidget : public IDrawable, public Transformable {
|
2018-06-21 01:32:55 +02:00
|
|
|
public:
|
|
|
|
void update(const Inventory &inventory);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void draw(RenderTarget &target, RenderStates states) const override;
|
|
|
|
|
|
|
|
std::vector<ItemWidget> m_itemWidgets;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // INVENTORYWIDGET_HPP_
|