YAGE  v0.1.4.0
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
space.h
Go to the documentation of this file.
1 
9 #ifndef YAGE_ENGINE_SPACE_H
10 #define YAGE_ENGINE_SPACE_H
11 
12 #include <vector>
13 
14 #include "entitymanager.h"
15 
16 namespace yage
17 {
18 
19 class System;
20 
28 class Space
29 {
30 public:
34  Space();
35 
42  unsigned createEntity();
43 
44 private:
50  std::vector<System *> systems_;
51 
56  EntityManager em_;
57 };
58 
59 } // namespace yage
60 
61 #endif
Manages entities in a space.
Definition: entitymanager.h:24
Space()
Default instance for a space.
Definition: space.cpp:14
unsigned createEntity()
Create an entity that will belong to this space, and return the handle to the user.
Definition: space.cpp:16
Space that keeps track of all the entities, componenets and runs the systems on the data to update th...
Definition: space.h:28