1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/********************************************************************
*
*	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