Fission FSN
Loading...
Searching...
No Matches
gfCMapPopUpGui.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsCMapPopUpGui.h
4*
5* Purpose: Pop up for visited levels
6*
7*********************************************************************/
8
9#ifndef fsCMapPopUpGuihdr
10#define fsCMapPopUpGuihdr
11
13
14
16{
17 friend class fsCComponentFactory;
18
19public:
20
21 static const fsCUniqueId mTypeId;
22
23 static void nextLevelStart(const fsStr& pNextLevel);
24
25 static fsStr levelCompletionRankGet(const fsStr& pLevel);
26
27 static void bonusBonusTotalGet(const fsStr& pLevel, fsS32& pBonusBonusTotal);
28
29 static void trashTotalGet(const fsStr& pLevel, fsS32& pTrashCount, fsS32& pTrashTotal,
30 fsS32& pLostFoundCount, fsS32& pLostFoundTotal);
31
32 fsBool onButtonClicked(fsCButtonComponent* pButtonComp) override;
33
34 void init(const fsStr& pLevel);
35
36protected:
37
38 static fsIComponent* create(fsCEntity* pParent);
39
40 fsCMapPopUpGui(fsCEntity* pParent);
41 virtual ~fsCMapPopUpGui();
42
43private:
44
45 void starInit(const fsStr& pName, fsBool pVisible);
46 void completionStarsInit();
47
48 static void nextMapLocationClear(const fsStr& pTargetLevel);
49 void stringSet(const fsStr& pTxtBoxName, const fsStr& pStrId, fsStr pNumGot, fsStr pNumTot) const;
50
51 fsStr mTarget;
52
53 fsS32 mTrashCount;
54 fsS32 mTrashTotal;
55 fsS32 mLostFoundCount;
56 fsS32 mLostFoundTotal;
57};
58
59#endif
Definition fsCButtonComponent.h:26
Definition fsCEntity.h:39
static void nextLevelStart(const fsStr &pNextLevel)
Definition gfCMapPopUpGui.cpp:31
static fsStr levelCompletionRankGet(const fsStr &pLevel)
Definition gfCMapPopUpGui.cpp:38
friend class fsCComponentFactory
Definition gfCMapPopUpGui.h:17
static void trashTotalGet(const fsStr &pLevel, fsS32 &pTrashCount, fsS32 &pTrashTotal, fsS32 &pLostFoundCount, fsS32 &pLostFoundTotal)
Definition gfCMapPopUpGui.cpp:75
void init(const fsStr &pLevel)
Definition gfCMapPopUpGui.cpp:139
static fsIComponent * create(fsCEntity *pParent)
Definition gfCMapPopUpGui.cpp:171
static void bonusBonusTotalGet(const fsStr &pLevel, fsS32 &pBonusBonusTotal)
Definition gfCMapPopUpGui.cpp:58
virtual ~fsCMapPopUpGui()
Definition gfCMapPopUpGui.cpp:186
fsBool onButtonClicked(fsCButtonComponent *pButtonComp) override
Definition gfCMapPopUpGui.cpp:92
fsCMapPopUpGui(fsCEntity *pParent)
Definition gfCMapPopUpGui.cpp:176
static const fsCUniqueId mTypeId
Definition gfCMapPopUpGui.h:21
Definition fsCUniqueId.h:21
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
fsIGuiComponent(fsCEntity *pParent)
Definition fsIGuiComponent.cpp:726
Definition fsStr.h:23
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20