/********************************************************************
*
* File: gfCCatalogueCategory.h
*
* Purpose: Group of sub-categories and items
*
*********************************************************************/
#ifndef gfCCatalogueCategoryhdr
#define gfCCatalogueCategoryhdr
#include "../gfICatalogueEntry.h"
class gfCCatalogueCategory : public gfICatalogueEntry
{
friend class gfCCatalogueCatalogue;
friend class gfCTuneCatalogue;
public:
#if !defined fsRELEASE
fsS32 totalCostGet() const override;
#endif
/// Icon the parser resolved from the catalogue's iconFilesBase + category
/// name - the category-level counterpart of an item's "iconFileName" param,
/// so a catalogue GUI can present categories and items the same way.
const fsStr& iconFileNameGet() const { return mIconFileName; }
protected:
gfCCatalogueCategory(const fsStr& pName, const fsStr& pTextKey, const fsStr& pIconFileName);
virtual ~gfCCatalogueCategory();<--- Destructor in derived class
fsStr mIconFileName;
private:
};
#endif