Fission FSN
Loading...
Searching...
No Matches
gfCAutoTestOverlay.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCAutoTestOverlay.h
4*
5* Purpose: Auto play HUD - time left, level count and tap markers
6*
7*********************************************************************/
8
9#ifndef gfCAutoTestOverlayhdr
10#define gfCAutoTestOverlayhdr
11
12#include <vector>
13
14#include <fsCore/fsBaseTypes.h>
15#include <fsCore/fsPoint.h>
16#include <fsCore/fsStr.h>
17
18class fsCEntity;
19
20
22{
23public:
24
25 gfCAutoTestOverlay(fsCEntity* pOwnerEnt, fsS32 pTimeLeftMs);
26
27 void timeLeftShow(fsS32 pTimeLeftMs);
28 void levelShow();
29
30 // pScreenPos is pointer (screen) space - see gfCAutoTestPointer.
31 void tapMarkerPlace(const fsPoint& pScreenPos);
32 void tapMarkersHide();
33
34 void destroy();
35
36private:
37
38 static fsCEntity* textEntityCreate(fsCEntity* pOwnerEnt, const fsStr& pName);
39
40 std::vector<fsCEntity*> mTapMarkers;
41 fsS32 mTapMarkerNext;
42
43 fsCEntity* mTimeLeft;
44 fsCEntity* mLevel;
45 fsCEntity* mBackdrop;
46};
47
48#endif
Definition fsCEntity.h:39
Definition fsStr.h:23
void levelShow()
Definition gfCAutoTestOverlay.cpp:40
void tapMarkerPlace(const fsPoint &pScreenPos)
Definition gfCAutoTestOverlay.cpp:46
void tapMarkersHide()
Definition gfCAutoTestOverlay.cpp:58
void timeLeftShow(fsS32 pTimeLeftMs)
Definition gfCAutoTestOverlay.cpp:33
gfCAutoTestOverlay(fsCEntity *pOwnerEnt, fsS32 pTimeLeftMs)
Definition gfCAutoTestOverlay.cpp:83
void destroy()
Definition gfCAutoTestOverlay.cpp:70
int fsS32
Definition fsBaseTypes.h:20
Definition fsPoint.h:17