diff options
Diffstat (limited to 'yage/engine/engine.h')
-rw-r--r-- | yage/engine/engine.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/yage/engine/engine.h b/yage/engine/engine.h deleted file mode 100644 index 147769e5..00000000 --- a/yage/engine/engine.h +++ /dev/null @@ -1,51 +0,0 @@ -/** --------------------------------------------------------------------------- - * @file: engine.h - * - * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> - * MIT License, see LICENSE file for more details. - * ---------------------------------------------------------------------------- - */ - -#ifndef YAGE_CORE_ENGINE_H -#define YAGE_CORE_ENGINE_H - -#include "../core/window.h" -#include "system.h" - -#include <vector> - -namespace yage -{ - -/// Main engine class that contains a systems, the main loop and the update -/// function that updates all the systems. -class Engine -{ -public: - /// Initialize window and other aspects of the engine. - void init(); - - /// Main game loop of the engine. - void mainLoop(); - - /// Updates the systems. - void update(); - - /// Adds a system to the engine. - void addSystem(System *system); - - /// Returns the instance of the engine, as there is only one instance of the - /// engine. - static Engine &instance(); - -private: - /// Vector of all the systems in the engine. - std::vector<System *> systems_; - - /// Window - Window window_; -}; - -} // namespace yage - -#endif |