Fission FSN
Loading...
Searching...
No Matches
gfCSubSceneNavigateComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* Created: 11/4/2014 14:52
4*
5* File: gfCSubSceneNavigateComponent.h
6*
7* Author: Mick Waites
8*
9* Purpose: Tappable component that then activates the associated
10* sub-scene.
11*
12*********************************************************************/
13
14#ifndef gfCSubSceneNavigateComponenthdr
15#define gfCSubSceneNavigateComponenthdr
16
18
21
22
24{
25 friend class fsCComponentFactory;
26
27public:
28
29 static const fsStr mEntityPrefix;
30
31 void addToSubScene(fsCEntity* pSubSceneEntity) const;
32 void bringToFront() const;
33
34 static const fsCUniqueId mTypeId;
36
37protected:
38
39 void listenersRegisterDo() override;
40 void listenersDeregisterDo() override;
41 fsBool messageProcessDo(const fsCUniqueId& pMessageType,
42 const fsIMessageDispatcher::sMessageParameters& pParam) override;
43
44 void tutorialCompletedDo(const fsPoint& pPos) override;
45
46 fsBool acceptingInputGet() const override;
47 void onTap(const fsPoint& pTapPos) override;
48
49 static fsIComponent* create(fsCEntity* pParent);
51
52private:
53
54 void particleEffectLoad();
55 void targetIndexCalculate();
56
57 fsS32 mTargetIndex;
58
59 // Awkward lifetime - would ideally be a shared_ptr but we can't destroy entities as we could be mid update
60 // and that could break the hierarchy - but not strictly true in this case, bu we'd have to open up entity
61 fsCEntity* mParticleEntity;
62};
63
64#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 fsStr.h:23
void listenersRegisterDo() override
Definition gfCSubSceneNavigateComponent.cpp:59
void listenersDeregisterDo() override
Definition gfCSubSceneNavigateComponent.cpp:50
fsBool acceptingInputGet() const override
Definition gfCSubSceneNavigateComponent.cpp:78
friend class fsCComponentFactory
Definition gfCSubSceneNavigateComponent.h:25
void tutorialCompletedDo(const fsPoint &pPos) override
Definition gfCSubSceneNavigateComponent.cpp:30
static fsIComponent * create(fsCEntity *pParent)
Definition gfCSubSceneNavigateComponent.cpp:108
void addToSubScene(fsCEntity *pSubSceneEntity) const
Definition gfCSubSceneNavigateComponent.cpp:19
gfCSubSceneNavigateComponent(fsCEntity *pParent)
Definition gfCSubSceneNavigateComponent.cpp:121
virtual ~gfCSubSceneNavigateComponent()
Definition gfCSubSceneNavigateComponent.cpp:128
void bringToFront() const
Definition gfCSubSceneNavigateComponent.cpp:25
void onTap(const fsPoint &pTapPos) override
Definition gfCSubSceneNavigateComponent.cpp:83
fsBool messageProcessDo(const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam) override
Definition gfCSubSceneNavigateComponent.cpp:35
static const fsCUniqueId mTypeId
Definition gfCSubSceneNavigateComponent.h:34
static const fsStr mEntityPrefix
Definition gfCSubSceneNavigateComponent.h:29
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
Definition fsIMessageDispatcher.h:32
Definition fsPoint.h:17