Fission FSN
Loading...
Searching...
No Matches
gfCAutoTestManager.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCAutoTestManager.h
4*
5* Purpose: Wrap up all the auto test code
6*
7*********************************************************************/
8
9#ifndef gfCAutoTestManagerhdr
10#define gfCAutoTestManagerhdr
11
12#include <fsCore/fsBaseTypes.h>
14
15class fsCEntity;
16class fsCUniqueId;
17class fsIComponent;
21
22
24{
25public:
26
28
32 const static fsStr mAutoGuiTestName;
33
34 fsBool active() const { return nullptr != mTestLogic; }
35
36 static void create(fsCEntityFactory* pEntityFactory, fsCComponentFactory* pComponentFactory);
37 static void destroy();
38
40
42
43protected:
44
45 gfCAutoTestManager(fsCEntityFactory* pEntityFactory, fsCComponentFactory* pComponentFactory);
46
47 void listenersRegisterDo() override;
48 void listenersDeregisterDo() override;
49 fsBool messageProcessDo(const fsCUniqueId& pMessageType,
50 const fsIMessageDispatcher::sMessageParameters& pParam) override;
51
52private:
53
54 static void clearUpTestProfiles();
55 static fsStr playerNameGet();
56
57 void testLogicChoose(const fsStr& pPlayerName);
58
59 const static fsStr mAutoLoadAutoPlayTestName;
60
62
63 fsCEntity* mEntity;
64
66};
67
68#endif
Definition fsCComponentFactory.h:26
Definition fsCEntityFactory.h:25
Definition fsCEntity.h:39
Definition fsCUniqueId.h:21
Definition fsIComponent.h:26
fsIMessageListener(fsS32 pPriority)
Definition fsIMessageListener.cpp:41
Definition fsStr.h:23
Definition gfCAutoTestManager.h:24
void listenersRegisterDo() override
Definition gfCAutoTestManager.cpp:28
fsBool active() const
Definition gfCAutoTestManager.h:34
static void create(fsCEntityFactory *pEntityFactory, fsCComponentFactory *pComponentFactory)
Definition gfCAutoTestManager.cpp:62
static const fsStr mScreenShotTestName
Definition gfCAutoTestManager.h:29
gfCAutoTestManager(fsCEntityFactory *pEntityFactory, fsCComponentFactory *pComponentFactory)
Definition gfCAutoTestManager.cpp:157
fsBool messageProcessDo(const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam) override
Definition gfCAutoTestManager.cpp:42
static const fsStr mAutoPlayTestName
Definition gfCAutoTestManager.h:31
void listenersDeregisterDo() override
Definition gfCAutoTestManager.cpp:35
static const fsStr mAutoGuiTestName
Definition gfCAutoTestManager.h:32
static const fsCUniqueId mTestComplete
Definition gfCAutoTestManager.h:27
~gfCAutoTestManager()
Definition gfCAutoTestManager.cpp:173
static void destroy()
Definition gfCAutoTestManager.cpp:88
static const fsStr mAutoLoadTestName
Definition gfCAutoTestManager.h:30
static gfCAutoTestManager * instanceGet()
Definition gfCAutoTestManager.cpp:69
Definition gfIAutoTestUserInputComponent.h:18
T * fsTSingleton< T >::mInstance
Definition fsTSingleton.h:70
bool fsBool
Definition fsBaseTypes.h:26
Definition fsIMessageDispatcher.h:32