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 
10 #pragma once
11 
12 #include <memory>
13 #include <vector>
14 
15 #include "entity.h"
16 #include "system.h"
17 
18 struct Movement {
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
-*- c++ -*-
Manages entities in a space.
Definition: entity.h:25
Space()
Default instance for a space.
Definition: space.cpp:15
unsigned int Entity
Definition: entity.h:19
-*- c++ -*-
void update()
Update all the systems.
Definition: space.cpp:22
Entity createEntity()
Create an entity that will belong to this space, and return the handle to the user.
Definition: space.cpp:17
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:18