Fission FSN
Loading...
Searching...
No Matches
gfCJigsawCluster.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCJigsawCluster.h
4*
5* Purpose: Wrap up the clustering behavior for jigsaw pieces
6*
7*********************************************************************/
8
9#ifndef gfCJigsawClusterhdr
10#define gfCJigsawClusterhdr
11
13
14struct fsPoint;
15
17{
18public:
19
27
28
31
32 static void loadLink(gfCJigsawMinigameComponent*& pLink, const fsStr& pLoadStr);
34
35 static void clustersRelink(gfCJigsawMinigameComponent* pPiece);
36 static void clusterCreate(gfCJigsawMinigameComponent* pPiece);
37
39 const fsPoint& pPos);
41
43
46
47
48protected:
49
51 {
52 }
53
55 {
56 }
57
58private:
59
60 static fsS32 clusterSizeGet(gfCJigsawMinigameComponent* pPiece);
61
62 static fsBool piecesCloseEnoughToCluster(gfCJigsawMinigameComponent* const pClusterPiece,
63 gfCJigsawMinigameComponent* const pCandidate);
64};
65
66#endif
Definition fsStr.h:23
static void clusterCreate(gfCJigsawMinigameComponent *pPiece)
Definition gfCJigsawCluster.cpp:47
static fsBool inMyClusterGet(gfCJigsawMinigameComponent *pPiece, gfCJigsawMinigameComponent *pCandidate)
Definition gfCJigsawCluster.cpp:151
eDirection
Definition gfCJigsawCluster.h:20
@ eSouth
Definition gfCJigsawCluster.h:24
@ eWest
Definition gfCJigsawCluster.h:25
@ eNone
Definition gfCJigsawCluster.h:21
@ eEast
Definition gfCJigsawCluster.h:23
@ eNorth
Definition gfCJigsawCluster.h:22
void(gfCJigsawMinigameComponent::* fsTClusterMemMoveFnc)(const fsPoint &pPos)
Definition gfCJigsawCluster.h:29
static gfCJigsawMinigameComponent *const rootGet(gfCJigsawMinigameComponent *pPiece)
Definition gfCJigsawCluster.cpp:180
static gfCJigsawMinigameComponent *const tailOfClusterGet(gfCJigsawMinigameComponent *pPiece)
Definition gfCJigsawCluster.cpp:166
static fsStr saveLink(gfCJigsawMinigameComponent *pLink)
Definition gfCJigsawCluster.cpp:17
static void loadLink(gfCJigsawMinigameComponent *&pLink, const fsStr &pLoadStr)
Definition gfCJigsawCluster.cpp:9
void(gfCJigsawMinigameComponent::* fsTClusterMemFnc)()
Definition gfCJigsawCluster.h:30
~gfCJigsawCluster()
Definition gfCJigsawCluster.h:54
gfCJigsawCluster()
Definition gfCJigsawCluster.h:50
static void clusterFncExecute(gfCJigsawMinigameComponent *pPiece, fsTClusterMemFnc pMemFnc)
Definition gfCJigsawCluster.cpp:141
static void clusterMoveFncExecute(gfCJigsawMinigameComponent *pPiece, fsTClusterMemMoveFnc pMemMoveFnc, const fsPoint &pPos)
Definition gfCJigsawCluster.cpp:130
static void clustersRelink(gfCJigsawMinigameComponent *pPiece)
Definition gfCJigsawCluster.cpp:26
Definition gfCJigsawMinigameComponent.h:30
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
Definition fsPoint.h:17