Fission FSN
Loading...
Searching...
No Matches
gfCAutoTestLevelLoadComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCAutoTestLevelLoadComponent.h
4*
5* Purpose: Auto load levels
6*
7*********************************************************************/
8
9#ifndef gfCAutoTestLevelLoadComponenthdr
10#define gfCAutoTestLevelLoadComponenthdr
11
13
15
18
19
21{
22 friend class fsCComponentFactory;
23
24public:
25
26 static const fsCUniqueId mTypeId;
27
29
30protected:
31
33
34 void testUpdateDo(fsS32 pDeltaMs) override;
35
36 fsBool messageProcessDo(const fsCUniqueId& pMessageType,
37 const fsIMessageDispatcher::sMessageParameters& pParam) override;
38
40
41 static fsIComponent* create(fsCEntity* pParent);
42
43private:
44
45 fsStr playerNameGet() const;
46
47 void levelResolve();
48
49 // Buys every in-game shop item once, through the shop's own purchase
50 // action, so the shopping achievements are awarded. Once per run.
51 void shopBuyOutOnce();
52 void shopEntryBuy(const gfICatalogueEntry* pEntry, gfIPurchaseAction& pAction, fsS32& pBought);
53
54 // complete() force-collects, so it must run only once per level.
55 fsBool mLevelResolved;
56 fsBool mShopBoughtOut;
57};
58
59#endif
Definition fsCEntity.h:39
Definition fsCUniqueId.h:21
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
Definition fsStr.h:23
fsBool doUserInputReplicate() override
Definition gfCAutoTestLevelLoadComponent.cpp:198
void testUpdateDo(fsS32 pDeltaMs) override
Definition gfCAutoTestLevelLoadComponent.cpp:44
static const fsCUniqueId mTypeId
Definition gfCAutoTestLevelLoadComponent.h:26
friend class fsCComponentFactory
Definition gfCAutoTestLevelLoadComponent.h:22
virtual ~gfCAutoTestLevelLoadComponent()
Definition gfCAutoTestLevelLoadComponent.cpp:218
gfCAutoTestLevelLoadComponent(fsCEntity *pParent)
Definition gfCAutoTestLevelLoadComponent.cpp:208
static fsIComponent * create(fsCEntity *pParent)
Definition gfCAutoTestLevelLoadComponent.cpp:203
fsBool messageProcessDo(const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam) override
Definition gfCAutoTestLevelLoadComponent.cpp:81
gfIAutoTestLevelUserInputComponent(fsCEntity *pParent)
Definition gfIAutoTestUserInputComponent.cpp:382
Definition gfICatalogueEntry.h:18
Definition gfIPurchaseAction.h:18
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
Definition fsIMessageDispatcher.h:32