diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-22 00:14:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-22 00:14:10 +0100 |
commit | b1673de1b46bd2e566b7c66197ad989d0323f061 (patch) | |
tree | 2cbfdab552025af7a8772069b9f9935f9c9f387f /yage/entity/space.h | |
parent | 39ef9c1cbe660a8369a33eb0ba13cc15be4cfa15 (diff) | |
parent | 3702e753a5f7b31c31261c968757e19e808a84ec (diff) | |
download | YAGE-b1673de1b46bd2e566b7c66197ad989d0323f061.tar.gz YAGE-b1673de1b46bd2e566b7c66197ad989d0323f061.zip |
Merge pull request #19 from ymherklotz/develop
Develop
Diffstat (limited to 'yage/entity/space.h')
-rw-r--r-- | yage/entity/space.h | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/yage/entity/space.h b/yage/entity/space.h deleted file mode 100644 index 0763b189..00000000 --- a/yage/entity/space.h +++ /dev/null @@ -1,76 +0,0 @@ -/** --------------------------------------------------------------------------- - * -*- c++ -*- - * @file: space.h - * - * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> - * MIT License, see LICENSE file for more details. - * ---------------------------------------------------------------------------- - */ - -#pragma once - -#include <memory> -#include <vector> - -#include "entity.h" -#include "system.h" - -struct Movement { -}; - -namespace yage -{ - -class System; - -/** - * Space that keeps track of all the entities, componenets and runs - * the systems on the data to update them. There can be multiple - * instances of a space, which can be used, for example, for different - * levels in the game that can be loaded separately, or a game menu - * that can be loaded above the other spaces when the user presses on - * pause. - */ -class Space -{ -public: - /** - * Default instance for a space. - */ - Space(); - - /** - * Create an entity that will belong to this space, and return the - * handle to the user. The Entity class itself should not be - * visible to the user, as the user only needs to worry about the - * handle when referring to the Entity and changing it. - */ - Entity createEntity(); - - /** - * Update all the systems. - */ - void update(); - -private: - /** - * The systems of the Space that act on the data and on their - * respective component. These are specific to the Space, as other - * spaces might have different Systems and not act on the same - * entities. - */ - std::vector<std::unique_ptr<System>> systems_; - - /** - * Manages all the entities in the system, can create them for the - * current space. - */ - EntityManager em_; - - /** - * Manages all the components - */ - // ComponentManager cm_; -}; - -} // namespace yage |