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/engine.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/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 9a1f6d2b..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. - void init(); - - /// Main game loop of the engine. - void mainLoop(); - - /// Updates the systems. - void update(); - - /// Add spaces to the engine - void 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 |