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:		gfCSlidasquareCutterComponent.h
*
*	Purpose:	Cutter to create slidasquare minigame tiles
*
*********************************************************************/

#ifndef gfCSlidasquareCutterComponenthdr
#define gfCSlidasquareCutterComponenthdr

#include "../gfISimpleCutterComponent.h"

class gfCSlidasquareCutterComponent : public gfISimpleCutterComponent
{
	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);

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

private:
};

#endif