Fission FSN
Loading...
Searching...
No Matches
gfCLevelSequencerMapLevelIconComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCLevelSequencerMapLevelIconComponent.h
4*
5* Purpose: Icon that can be clicked on to navigate to a new level.
6* Also needs to pass drag on through to the sub scene
7* view.
8*
9*********************************************************************/
10
11#ifndef gfCLevelSequencerMapLevelIconComponenthdr
12#define gfCLevelSequencerMapLevelIconComponenthdr
13
15
18
19struct fsPoint;
22
23
25{
27 friend class fsCComponentFactory;
28
29public:
30
31 void posSet(const fsPoint& pPos);
32
33 void listenersRegisterDo() override;
34 void listenersDeregisterDo() override;
35
36 void deactivate() { mActive = false; }
38
39 static const fsCUniqueId mTypeId;
40
42
43protected:
44
45 void updateDo(fsS32 pDeltaMs) override;
46 void renderDo() override;
47
48 fsBool messageProcessDo(const fsCUniqueId& pMessageType,
49 const fsIMessageDispatcher::sMessageParameters& pParam) override;
50
51 void tutorialCompletedDo(const fsPoint& pPos) override;
52
53 fsBool acceptingInputGet() const override;
54
55 void onTap(const fsPoint& pStartPos) override;
56 void onDragStart(const fsPoint& pStartPos) override;
57 void onDragMove(const fsPoint& pCurrPos) override;
58 void onDragEnd(const fsPoint& pEndPos) override;
59
60 static fsIComponent* create(fsCEntity* pParent);
62
63private:
64
65 void zSort();
66 void carouselScaleUpdate(fsS32 pDeltaMs);
67 fsF32 mCarouselScale;
68 fsVec2d mPos;
69 fsBool mCarouselActive;
70
71 const fsS32 mYOffset;
72
73 gfCSubSceneViewComponent* mSubSceneView;
74
75 fsBool mActive;
76 fsBool mMouseOver;
77
79};
80
81#endif
Definition fsCEntity.h:39
Definition fsCUniqueId.h:21
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
fsIGestureHandlingComponent(fsCEntity *pParent, fsBool pHandleTaps, fsBool pHandleDragEvent, fsBool pHandlePinchEvents)
Definition fsIGestureHandlingComponent.cpp:448
fsITutorialEnabledComponent()
Definition fsITutorialEnabledComponent.cpp:17
Definition gfCLevelSequencerMapLevelComponent.h:19
void renderDo() override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:66
void onDragEnd(const fsPoint &pEndPos) override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:191
friend class gfIAutoTestLevelUserInputComponent
Definition gfCLevelSequencerMapLevelIconComponent.h:26
void deactivate()
Definition gfCLevelSequencerMapLevelIconComponent.h:36
friend class fsCComponentFactory
Definition gfCLevelSequencerMapLevelIconComponent.h:27
gfCLevelSequencerMapLevelIconComponent(fsCEntity *pParent)
Definition gfCLevelSequencerMapLevelIconComponent.cpp:206
fsBool messageProcessDo(const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam) override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:123
void listenersDeregisterDo() override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:117
void tutorialCompletedDo(const fsPoint &pPos) override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:145
fsBool acceptingInputGet() const override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:196
void updateDo(fsS32 pDeltaMs) override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:75
void onDragMove(const fsPoint &pCurrPos) override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:186
virtual ~gfCLevelSequencerMapLevelIconComponent()
Definition gfCLevelSequencerMapLevelIconComponent.cpp:218
void posSet(const fsPoint &pPos)
Definition gfCLevelSequencerMapLevelIconComponent.cpp:21
static const fsCUniqueId mTypeId
Definition gfCLevelSequencerMapLevelIconComponent.h:39
static fsIComponent * create(fsCEntity *pParent)
Definition gfCLevelSequencerMapLevelIconComponent.cpp:201
void onDragStart(const fsPoint &pStartPos) override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:181
void componentsLink(gfCSubSceneViewComponent *pSubScene, gfCLevelSequencerMapLevelComponent *pParent)
Definition gfCLevelSequencerMapLevelIconComponent.cpp:150
void onTap(const fsPoint &pStartPos) override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:157
void listenersRegisterDo() override
Definition gfCLevelSequencerMapLevelIconComponent.cpp:111
Definition gfCSubSceneViewComponent.h:27
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
float fsF32
Definition fsBaseTypes.h:28
Definition fsIMessageDispatcher.h:32
Definition fsPoint.h:17
Definition fsVec2d.h:16