diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-15 20:00:26 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-15 20:00:26 +0100 |
commit | 2acf4bfcbb5c4b457590e0ce6336645bc3900d83 (patch) | |
tree | 7b668e425cf9c89082f145cf929c644b0e8f9473 /yage/entity/engine.h | |
parent | c3a7658120c9bb396bde01bed2bcec938fef1f10 (diff) | |
download | YAGE-2acf4bfcbb5c4b457590e0ce6336645bc3900d83.tar.gz YAGE-2acf4bfcbb5c4b457590e0ce6336645bc3900d83.zip |
Deleting entity system so that it can be rewritten
Diffstat (limited to 'yage/entity/engine.h')
-rw-r--r-- | yage/entity/engine.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/yage/entity/engine.h b/yage/entity/engine.h deleted file mode 100644 index 6719eeaf..00000000 --- a/yage/entity/engine.h +++ /dev/null @@ -1,58 +0,0 @@ -/** --------------------------------------------------------------------------- - * -*- c++ -*- - * @file: engine.h - * - * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> - * MIT License, see LICENSE file for more details. - * ---------------------------------------------------------------------------- - */ - -#pragma once - -#include "system.h" - -#include "../core/window.h" -#include "../util/noncopyable.h" - -#include <memory> -#include <vector> - -namespace yage -{ - -class Space; - -/** - * Main engine class that contains a systems, the main loop and the update - * function that updates all the systems. - */ -class Engine : public NonCopyable -{ -public: - ~Engine(); - - /// Initialize window and other aspects of the engine. - Engine &init(); - - /// Main game loop of the engine. - Engine &mainLoop(); - - /// Updates the systems. - void update(); - - /// Add spaces to the engine - Engine &addSpace(std::unique_ptr<Space> space); - - /// Returns the instance of the engine, as there is only one instance of the - /// engine. - static Engine &instance(); - -private: - /// Window - Window window_; - - /// A vector of all the spaces - std::vector<std::unique_ptr<Space>> spaces_; -}; - -} // namespace yage |