Fission FSN
Loading...
Searching...
No Matches
gfCAchievementEffectScreen.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCAchievementEffectScreen.h
4*
5* Purpose: Modal screen to block input while the achievement
6* effect completes. Also holds up end of round progression.
7* Was CAchievementEffectScreen; moved into Fission and
8* renamed — update any asset still referencing the old name.
9*
10*********************************************************************/
11
12#ifndef gfCAchievementEffectScreenhdr
13#define gfCAchievementEffectScreenhdr
14
15#include <deque>
16
17#include <fsCore/fsSColour.h>
20
22{
23 friend class fsCComponentFactory;
24
25public:
26
27 static const fsCUniqueId mTypeId;
28
29 void achievementRegister(const fsStr& pAchievement);
30
31protected:
32
33 void updateDo(fsS32 pDeltaMs) override;
34
35 void deserialiseDo() override;
36
37 void initialiseFromVariableTableDo(const fsCVariableTable& pVars) override;
38
39 static fsIComponent* create(fsCEntity* pParent);
40
43
44private:
45
46 void particleEffectLoad();
47 void spriteModify();
48 void achievementSpriteLoad();
49 void flashAndPulseInit();
50
51 fsStr mEffecFilename;
52 fsStr mAchievementsFolder;
53 fsS32 mEffectDuration;
54 fsS32 mRunningTime;
55
56 fsSColour mColour;
57
58 fsCGraph<fsF32>* mFlashGraph;
59 fsCGraph<fsF32>* mScaleGraph;
60
61 std::deque<fsStr> mAchievements;
62};
63
64#endif
Definition fsCEntity.h:39
Definition fsCGraph.h:24
Definition fsCUniqueId.h:21
Definition fsCVariableTable.h:27
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
fsIGuiComponent(fsCEntity *pParent)
Definition fsIGuiComponent.cpp:726
Definition fsSColour.h:20
Definition fsStr.h:23
friend class fsCComponentFactory
Definition gfCAchievementEffectScreen.h:23
void deserialiseDo() override
Definition gfCAchievementEffectScreen.cpp:17
gfCAchievementEffectScreen(fsCEntity *pParent)
Definition gfCAchievementEffectScreen.cpp:144
virtual ~gfCAchievementEffectScreen()
Definition gfCAchievementEffectScreen.cpp:153
static const fsCUniqueId mTypeId
Definition gfCAchievementEffectScreen.h:27
void updateDo(fsS32 pDeltaMs) override
Definition gfCAchievementEffectScreen.cpp:60
void achievementRegister(const fsStr &pAchievement)
Definition gfCAchievementEffectScreen.cpp:92
static fsIComponent * create(fsCEntity *pParent)
Definition gfCAchievementEffectScreen.cpp:139
void initialiseFromVariableTableDo(const fsCVariableTable &pVars) override
Definition gfCAchievementEffectScreen.cpp:104
int fsS32
Definition fsBaseTypes.h:20