Game Develop C++ Platform: RuntimeContext.h Source File

| Game Develop C++ Platform Platform for developing native games based on OpenGL and SFML with Game Develop

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
RuntimeContext.h
1 #ifndef RUNTIMECONTEXT_H
2 #define RUNTIMECONTEXT_H
3
4 #include <vector>
5 #include <string>
6 #include <map>
7 class RuntimeObject;
8 class RuntimeScene;
9
13 class GD_API RuntimeContext
14 {
15 public:
16 RuntimeContext(RuntimeScene * scene_) : scene(scene_) {};
17 virtual ~RuntimeContext() {};
18
26 std::vector<RuntimeObject*> GetObjectsRawPointers(const std::string & name);
27
28 RuntimeContext & ClearObjectListsMap();
29 RuntimeContext & AddObjectListToMap(const std::string & objectName, std::vector<RuntimeObject*> & list);
30 std::map <std::string, std::vector<RuntimeObject*> *> ReturnObjectListsMap();
31
32 RuntimeScene * scene;
33
34 private:
35 std::map <std::string, std::vector<RuntimeObject*> *> temporaryMap;
36 };
37
38 #endif // RUNTIMECONTEXT_H
39