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
48
49
50
51
52
/********************************************************************
*
*	Created:	2/2/2013   17:19
*
*	File:		gfCJigsawComponentCutter.h
*
*	Author:		Martin P. King
*	
*	Purpose:	Class that controls the cutting up of the raw
*				jigsaw texture into its various components
*
*********************************************************************/

#ifndef gfCJigsawComponentCutterhdr
#define gfCJigsawComponentCutterhdr

#include "../gfICutterComponent.h"

class fsCJigsawCutComponentPF;
class fsCEntityManager;
class gfCJigsawStencilTextures;


class gfCJigsawComponentCutter : public gfICutterComponent
{
	friend class fsCComponentFactory;

public:

	static const fsCUniqueId mTypeId;
	static const fsStr mEntityPrefix;

	void stencilsCreate() override;

protected:

	fsStr minigamePieceNameGet() const override;
	void doCut(fsCEntity* pEnt, gfIStencil* pStencil, fsBool pFirstTime) override;
	gfIStencil* const stencilRestore() override;
	void doSetup(const fsCVariableTable& pStyle, const fsStr& pLevelName) override;

	static fsIComponent* create(fsCEntity* pParent);

	gfCJigsawComponentCutter(fsCEntity* pParent);
	virtual ~gfCJigsawComponentCutter();<--- Destructor in derived class

private:

	gfCJigsawStencilTextures* mStencilTextures;
};

#endif