Fission FSN
Loading...
Searching...
No Matches
gfCMinigameLetterTileComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCMinigameLetterTileComponent.h
4*
5* Purpose: The tiles that make up the word search grid
6*
7*********************************************************************/
8
9#ifndef gfCMinigameLetterTileComponenthdr
10#define gfCMinigameLetterTileComponenthdr
11
13
14struct fsPoint;
15class gfCWordSearchMinigameSelectionComponent;
17struct fsSColour4B;
18
20{
21 friend class fsCComponentFactory;
22
23public:
24
25 static const fsCUniqueId mTypeId;
26
27 void tint(fsSColour4B const& pTint);
28
29 fsStr letterGet() const { return mLetter; }
30
31 void initialise(const fsStr& pTileSet, fsStr pLetter);
32
34
35protected:
36
37 static fsIComponent* create(fsCEntity* pParent);
38
40
41private:
42
43 fsBool positionThresholdCheck(const fsPoint& pMousePos, fsS32 pWidth) const;
44
45 fsStr mLetter;
46};
47
48#endif
Definition fsCEntity.h:39
Definition fsCUniqueId.h:21
Definition fsIComponent.h:26
void initialise()
Definition fsIComponent.cpp:51
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
Definition fsStr.h:23
static const fsCUniqueId mTypeId
Definition gfCMinigameLetterTileComponent.h:25
gfCMinigameLetterTileComponent(fsCEntity *pParent)
Definition gfCMinigameLetterTileComponent.cpp:43
friend class fsCComponentFactory
Definition gfCMinigameLetterTileComponent.h:21
static fsIComponent * create(fsCEntity *pParent)
Definition gfCMinigameLetterTileComponent.cpp:38
virtual ~gfCMinigameLetterTileComponent()
Definition gfCMinigameLetterTileComponent.cpp:49
fsStr letterGet() const
Definition gfCMinigameLetterTileComponent.h:29
void tint(fsSColour4B const &pTint)
Definition gfCMinigameLetterTileComponent.cpp:20
Definition gfCWordSearchMinigameLogicComponent.h:32
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
Definition fsPoint.h:17
Definition fsSColour.h:54