diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-12 06:45:47 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-06-12 06:45:47 +0100 |
commit | c3a7658120c9bb396bde01bed2bcec938fef1f10 (patch) | |
tree | d7fd576b654a66cd6b215b549953e390d2b0a966 /yage/entity/engine.h | |
parent | c6217d8b43b6ddf360485f9ba3b731a783482eaa (diff) | |
download | YAGE-c3a7658120c9bb396bde01bed2bcec938fef1f10.tar.gz YAGE-c3a7658120c9bb396bde01bed2bcec938fef1f10.zip |
Making functions return themselves
This is so that the functions can be chained
together
Diffstat (limited to 'yage/entity/engine.h')
-rw-r--r-- | yage/entity/engine.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yage/entity/engine.h b/yage/entity/engine.h index 9a1f6d2b..6719eeaf 100644 --- a/yage/entity/engine.h +++ b/yage/entity/engine.h @@ -32,16 +32,16 @@ public: ~Engine(); /// Initialize window and other aspects of the engine. - void init(); + Engine &init(); /// Main game loop of the engine. - void mainLoop(); + Engine &mainLoop(); /// Updates the systems. void update(); /// Add spaces to the engine - void addSpace(std::unique_ptr<Space> space); + Engine &addSpace(std::unique_ptr<Space> space); /// Returns the instance of the engine, as there is only one instance of the /// engine. |