Fission FSN
Loading...
Searching...
No Matches
gfCTileMapLevelLoaderComponent.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: gfCTileMapLevelLoaderComponent.h
4*
5* Purpose: Helper component used to create tile map entities upon
6* scene loading.
7*
8*********************************************************************/
9
10#ifndef gfCTileMapLevelLoaderComponenthdr
11#define gfCTileMapLevelLoaderComponenthdr
12
13#include <vector>
14
16
18
20
21namespace fsNTileMap
22{
23 class fsCView;
24}
25
26
28{
29 friend class fsCComponentFactory;
30
31public:
32
33 void levelLoad(const fsStr& pLevelName, const fsStr& pLevelFolder);
34
35 static const fsCUniqueId mTypeId;
37
38protected:
39
40 static fsIComponent* const create(fsCEntity* const pParent);
42
43private:
44
45 std::vector< fsCEntity* > entitiesCreateFromCoordsFile(const fsStr& pLevelFolder);
46
47 void mapCreate(fsStr const pMapfile);
48
49 void triggersProcess(fsNTileMap::fsCView* const pView);
50 void playerCreate(fsNTileMap::fsCView* const pView);
51};
52
53
54#endif
Definition fsCEntity.h:39
Definition fsCUniqueId.h:21
fsIComponent(fsCEntity *pParent)
Definition fsIComponent.cpp:86
Definition fsISpriteComponent.h:23
Definition fsCView.h:28
Definition fsStr.h:23
static fsIComponent *const create(fsCEntity *const pParent)
Definition gfCTileMapLevelLoaderComponent.cpp:126
friend class fsCComponentFactory
Definition gfCTileMapLevelLoaderComponent.h:29
static const fsCUniqueId mTypeId
Definition gfCTileMapLevelLoaderComponent.h:35
void levelLoad(const fsStr &pLevelName, const fsStr &pLevelFolder)
Definition gfCTileMapLevelLoaderComponent.cpp:77
gfCTileMapLevelLoaderComponent(fsCEntity *pParent)
Definition gfCTileMapLevelLoaderComponent.cpp:131
virtual ~gfCTileMapLevelLoaderComponent()
Definition gfCTileMapLevelLoaderComponent.cpp:136
gfILevelLoaderComponent(fsCEntity *pParent)
Definition gfILevelLoaderComponent.cpp:240
Definition fsILayer.h:21