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
41
42
43
44
45
46
47
/********************************************************************
*
*	File:		fsCLevelSequencerMinigameLevelComponent.h
*
*	Purpose:	Individual mini game levels
*
*********************************************************************/

#ifndef fsCLevelSequencerMinigameLevelComponenthdr
#define fsCLevelSequencerMinigameLevelComponenthdr

#include "../gfCLevelSequencerLevelComponent.h"

class fsCEntity;
class gfCLevelSequencerMinigameComponent;
struct fsPoint;

class fsCLevelSequencerMinigameLevelComponent : public gfCLevelSequencerLevelComponent
{
public:

	const static fsStr mButtonPrefix;

	static fsStr levelFilenameCompose(const fsStr& pPath, const fsStr& pName);
	fsStr levelFilenameGet() const override;

	fsCEntity* const levelIconEntityGet() const;
	void posSet(const fsPoint& pPos);
	void levelIconEntityCreate(fsCEntity* pParent, const fsStr& pLayoutFile);

	fsCLevelSequencerMinigameLevelComponent(const fsStr& pLevelPath, const fsStr& pLevelFolder);
	virtual ~fsCLevelSequencerMinigameLevelComponent();<--- Destructor in derived class

protected:


private:

	void infoSet();

	fsStr mSrcFile;
	fsStr mSrcFolder;

	fsCEntity* mLevelIconEntity;
};

#endif