/* * ===================================================================================== * * Filename: CraftingRecipe.hpp * * Description: * * Created: 24/06/2018 06:38:11 * * Author: Quentin Bazin, * * ===================================================================================== */ #ifndef CRAFTINGRECIPE_HPP_ #define CRAFTINGRECIPE_HPP_ #include #include "Inventory.hpp" class CraftingRecipe { public: CraftingRecipe(const std::array &recipe, const ItemStack &result, bool isShapeless = false); bool isMatching(const Inventory &inventory) const; const ItemStack &result() const { return m_result; } private: std::array m_recipe; ItemStack m_result; bool m_isShapeless; }; #endif // CRAFTINGRECIPE_HPP_