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 #pragma once
10 
11 #include <vector>
12 #include <memory>
13 
14 #include "entity.h"
15 #include "system.h"
16 
17 struct Movement {
18 
19 };
20 
21 namespace yage
22 {
23 
24 class System;
25 
34 class Space
35 {
36 public:
40  Space();
41 
49 
53  void update();
54 
55 private:
62  std::vector<std::unique_ptr<System>> systems_;
63 
68  EntityManager em_;
69 
73  // ComponentManager cm_;
74 };
75 
76 } // namespace yage
Manages entities in a space.
Definition: entity.h:24
Space()
Default instance for a space.
Definition: space.cpp:14
unsigned int Entity
Definition: entity.h:18
void update()
Update all the systems.
Definition: space.cpp:21
Entity 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:34
Definition: space.h:17