Fission FSN
Loading...
Searching...
No Matches
gfCGeneratedHogSubSceneComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCGeneratedHogSubSceneComponent.h
4*
5* Purpose: Parent for all entities in a particular scene. Can
6* itself be the child of another sub-scene.
7*
8*********************************************************************/
9
10#ifndef gfCGeneratedHogSubSceneComponenthdr
11#define gfCGeneratedHogSubSceneComponenthdr
12
14
16
18class fsCSprite;
20
21
23{
24 friend class fsCComponentFactory;
25
26 class gfGeneratedHogSubSceneMap {
27 public:
28 gfGeneratedHogSubSceneMap(gfCGeneratedHogSubSceneComponent* parent);
29
30 fsVec2d mOffset;
31 fsCEntity* mMe;
32 std::vector<std::unique_ptr<fsCSprite>> mMap;
33
34 void create();
35 void moveMe(fsVec2d newPos);
37 };
38
39public:
40
41 static const fsCUniqueId mTypeId;
43
44protected:
45
46 fsBool clickableEntsAvailableGetDo() const override;
47
48 void listenersRegisterDo() override;
49 void listenersDeregisterDo() override;
50 fsBool messageProcessDo(const fsCUniqueId& pMessageType,
51 const fsIMessageDispatcher::sMessageParameters& pParam) override;
52
53 static fsIComponent* create(fsCEntity* pParent);
55
56private:
57
58 void setColletables();
59 void setWalls();
60 void sceneCreate();
61
62 std::unique_ptr<gfGeneratedHogSubSceneMap> mMap;
63 std::unique_ptr<gfCSimpleMazeComponent> mMaze;
64
65 std::pair<int,int> mCurrentCell;
66
67};
68
69#endif
70
Definition fsCEntity.h:39
Definition fsCSprite.h:24
Definition fsCUniqueId.h:21
Definition fsIComponent.h:26
Definition fsISpriteComponent.h:23
friend class fsCComponentFactory
Definition gfCGeneratedHogSubSceneComponent.h:24
fsBool messageProcessDo(const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam) override
Definition gfCGeneratedHogSubSceneComponent.cpp:184
static const fsCUniqueId mTypeId
Definition gfCGeneratedHogSubSceneComponent.h:41
static fsIComponent * create(fsCEntity *pParent)
Definition gfCGeneratedHogSubSceneComponent.cpp:221
void listenersDeregisterDo() override
Definition gfCGeneratedHogSubSceneComponent.cpp:170
gfCGeneratedHogSubSceneComponent(fsCEntity *pParent)
Definition gfCGeneratedHogSubSceneComponent.cpp:236
void listenersRegisterDo() override
Definition gfCGeneratedHogSubSceneComponent.cpp:177
fsBool clickableEntsAvailableGetDo() const override
Definition gfCGeneratedHogSubSceneComponent.cpp:26
virtual ~gfCGeneratedHogSubSceneComponent()
Definition gfCGeneratedHogSubSceneComponent.cpp:246
Definition gfCSimpleMazeComponent.h:16
gfCSubSceneComponent(fsCEntity *pParent)
Definition gfCSubSceneComponent.cpp:194
bool fsBool
Definition fsBaseTypes.h:26
Definition fsIMessageDispatcher.h:32
Definition fsVec2d.h:16