Fission FSN
Loading...
Searching...
No Matches
gfCBonusCollectionScreen.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCBonusCollectionScreen.h
4*
5* Purpose: Screen to show off all the achievements unlocked by
6* the player - generated programatically
7*
8*********************************************************************/
9
10#ifndef gfCBonusCollectionScreenhdr
11#define gfCBonusCollectionScreenhdr
12
13#include <fsCore/fsPoint.h>
14
16
18
20{
21 friend class fsCComponentFactory;
22
23public:
24
25 static const fsCUniqueId mTypeId;
26
27 fsBool onButtonClicked(fsCButtonComponent* pButtonComp) override;
28
29
30protected:
31
32 static fsIComponent* create(fsCEntity* pParent);
33
36
37 void initialiseFromVariableTableDo(const fsCVariableTable& pVars) override;
38
39 void achievementsCreateDo() override;
40 void achievementsVisibilitySetDo() override;
41
42 virtual void achievementCreate(const fsPoint& pPos, fsS32 pIndex);
44
48
49
50private:
51
52 fsStr achievementFileNameGet(fsCEntity* pAchievementEnt) const;
53
54 void achievementInfoSet(fsCEntity* pAchievementEnt) const;
55 void achievementDestroy(const fsPoint& pPos, fsS32 pIndex) const;
56
57 fsBool mGrouping;
58 fsPoint mFirstAchievementPos;
59 fsPoint mAchievementPosIncrement;
60 fsPoint mAchievementPosStrideIncrement;
61 fsS32 mAchievementStride;
62
63 fsStr mCatalogueFileName;
64};
65
66#endif
Definition fsCButtonComponent.h:26
Definition fsCEntity.h:39
Definition fsCUniqueId.h:21
Definition fsCVariableTable.h:27
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
Definition fsStr.h:23
gfCAchievementsScreen(fsCEntity *pParent)
Definition gfCAchievementsScreen.cpp:121
void achievementsCreateDo() override
Definition gfCBonusCollectionScreen.cpp:195
void initialiseFromVariableTableDo(const fsCVariableTable &pVars) override
Definition gfCBonusCollectionScreen.cpp:221
friend class fsCComponentFactory
Definition gfCBonusCollectionScreen.h:21
virtual void achievementCreate(const fsPoint &pPos, fsS32 pIndex)
Definition gfCBonusCollectionScreen.cpp:130
fsS32 mMaxNumAchievements
Definition gfCBonusCollectionScreen.h:46
fsCVariableTable * mCatalogue
Definition gfCBonusCollectionScreen.h:47
void achievementsVisibilitySetDo() override
Definition gfCBonusCollectionScreen.cpp:86
fsBool onButtonClicked(fsCButtonComponent *pButtonComp) override
Definition gfCBonusCollectionScreen.cpp:17
static const fsCUniqueId mTypeId
Definition gfCBonusCollectionScreen.h:25
fsStr mItemButtonFileName
Definition gfCBonusCollectionScreen.h:45
~gfCBonusCollectionScreen()
Definition gfCBonusCollectionScreen.cpp:265
void achievementsDestroy()
Definition gfCBonusCollectionScreen.cpp:169
static fsIComponent * create(fsCEntity *pParent)
Definition gfCBonusCollectionScreen.cpp:246
gfCBonusCollectionScreen(fsCEntity *pParent)
Definition gfCBonusCollectionScreen.cpp:251
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
Definition fsPoint.h:17