Fission FSN
Loading...
Searching...
No Matches
gfILevelLoaderComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfILevelLoaderComponent.h
4*
5* Purpose: Interface component to load levels
6*
7*********************************************************************/
8
9#ifndef gfILevelLoaderComponenthdr
10#define gfILevelLoaderComponenthdr
11
14
15
17{
18public:
19
20 static fsStr layersSubFolderGet(const fsStr& pLevelFolder);
21
23
24protected:
25
26 fsStr levelSceneFilenameGet(const fsStr& pLevelFolder) const;
27
28 void collectablEntitiesInitialise(std::vector<fsCEntity*>& pNewEnts);
29 virtual void collectablEntitiesInitialiseDo(std::vector<fsCEntity*>& pNewEnts) {}
30
31 void tappableEntitiesTouchHitSpriteSet(std::vector<fsCEntity*>& pNewEnts);
32 void subSceneCompInit(fsCEntity* pSubSceneEnt, fsS32 pIndex) const;
33 void entitiesAddToSubScenes(std::vector<fsCEntity*>& pNewEnts) const;
34 void particleEntitiesInitialise(const fsStr& pFolder, std::vector<fsCEntity*>& pNewEnts);
35 void visibleEntitiesInitialise(const fsStr& pSceneFolderPath, std::vector<fsCEntity*>& pNewEnts);
36 void spriteComponentInitialise(const fsStr& pSceneFolderPath, fsCEntity* pEntity, fsISpriteComponent* pSprComp);
37 void texturePagesLoad(const fsStr& pSplitFolderPath);
38
40
42
43private:
44
45 virtual fsStr imageFileNameGet(fsCEntity* const pEntity, const fsStr& pSceneFolderPath);
46};
47
48
49#endif
Definition fsCEntity.h:39
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
Definition fsISpriteComponent.h:23
Definition fsStr.h:23
gfILevelLoaderComponent(fsCEntity *pParent)
Definition gfILevelLoaderComponent.cpp:240
void spriteComponentInitialise(const fsStr &pSceneFolderPath, fsCEntity *pEntity, fsISpriteComponent *pSprComp)
Definition gfILevelLoaderComponent.cpp:156
static fsStr layersSubFolderGet(const fsStr &pLevelFolder)
Definition gfILevelLoaderComponent.cpp:183
void particleEntitiesInitialise(const fsStr &pFolder, std::vector< fsCEntity * > &pNewEnts)
Definition gfILevelLoaderComponent.cpp:97
fsStr levelSceneFilenameGet(const fsStr &pLevelFolder) const
Definition gfILevelLoaderComponent.cpp:27
void visibleEntitiesInitialise(const fsStr &pSceneFolderPath, std::vector< fsCEntity * > &pNewEnts)
Definition gfILevelLoaderComponent.cpp:129
void entitiesAddToSubScenes(std::vector< fsCEntity * > &pNewEnts) const
Definition gfILevelLoaderComponent.cpp:56
fsStr mLayersSubFolder
Definition gfILevelLoaderComponent.h:41
void collectablEntitiesInitialise(std::vector< fsCEntity * > &pNewEnts)
Definition gfILevelLoaderComponent.cpp:40
virtual ~gfILevelLoaderComponent()
Definition gfILevelLoaderComponent.cpp:246
void subSceneCompInit(fsCEntity *pSubSceneEnt, fsS32 pIndex) const
Definition gfILevelLoaderComponent.cpp:87
virtual void collectablEntitiesInitialiseDo(std::vector< fsCEntity * > &pNewEnts)
Definition gfILevelLoaderComponent.h:29
void texturePagesLoad(const fsStr &pSplitFolderPath)
Definition gfILevelLoaderComponent.cpp:211
void tappableEntitiesTouchHitSpriteSet(std::vector< fsCEntity * > &pNewEnts)
Definition gfILevelLoaderComponent.cpp:45
int fsS32
Definition fsBaseTypes.h:20