47 using cRecipes = std::vector<std::unique_ptr<cBrewingRecipes::cRecipe>>;
std::vector< std::unique_ptr< cBrewingRecipes::cRecipe > > cRecipes
bool ParseItem(const AString &a_String, cItem &a_Item)
Parses an item string, returns true if successful.
const cRecipe * GetRecipeFrom(const cItem &a_Input, const cItem &a_Ingredient) const
Returns a recipe for the specified input, nullptr if no recipe found.
cRecipes m_Recipes
The collection of parsed recipes.
bool IsIngredient(const cItem &a_Ingredient) const
Returns true if the item is a ingredient, false if not.
void AddRecipeFromLine(AString a_Line, unsigned int a_LineNum)
Parses the recipe contained in the line, adds it to m_pState's recipes.
bool IsBottle(const cItem &a_Item) const
Returns true if the item is a bottle / potion, false if not.
bool IsFuel(const cItem &a_Item) const
Returns true if the item is the fuel, false if not.