From 9ee7ca5683a99dfdce946e6b6368ae6643f3a7f8 Mon Sep 17 00:00:00 2001 From: demiralp <demiralp@vr.rwth-aachen.de> Date: Wed, 18 Apr 2018 16:26:40 +0200 Subject: [PATCH] Simplified and improved the convenience and encapsulation of the system. --- library/phx/system.hpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/library/phx/system.hpp b/library/phx/system.hpp index d198a79f..0e0c3fb2 100644 --- a/library/phx/system.hpp +++ b/library/phx/system.hpp @@ -23,8 +23,6 @@ #ifndef LIBRARY_PHX_SYSTEM_HPP_ #define LIBRARY_PHX_SYSTEM_HPP_ -#include <string> - #include "phx/export.hpp" #include "phx/frame_timer.hpp" #include "phx/loggable.hpp" @@ -34,21 +32,13 @@ class Engine; class PHOENIX_EXPORT System : public Loggable { public: - System() = delete; virtual ~System() = default; virtual void Prepare() {} virtual void Update(const FrameTimer::TimeInfo&) {} - Engine* GetEngine() const; - protected: - explicit System(Engine* engine); - System(const System&) = delete; - System(System&&) = default; - - System& operator=(const System&) = delete; - System& operator=(System&&) = default; + friend Engine; Engine* engine_ = nullptr; }; -- GitLab