diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-08 13:43:10 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-02-08 13:43:10 -0500 |
commit | 1400ade977e13e3b535d3c2fddb6e15de3c9b5a5 (patch) | |
tree | 3b44a7e9b60cff2423a7908404a4d6a5e79284f8 /src/systems/animating.h | |
parent | cefe66cdbb8786dc455657376e36f0ff8785d5bc (diff) | |
download | therapy-1400ade977e13e3b535d3c2fddb6e15de3c9b5a5.tar.gz therapy-1400ade977e13e3b535d3c2fddb6e15de3c9b5a5.tar.bz2 therapy-1400ade977e13e3b535d3c2fddb6e15de3c9b5a5.zip |
Moved sprite rendering into AnimatingSystem
Refactored how systems work slightly. Now, rendering can be done by a number of systems working together. Since the AnimatingSystem handles the animation of sprites, it should also handle the rendering of them. Because of this, the RenderingSystem has been removed.
Diffstat (limited to 'src/systems/animating.h')
-rw-r--r-- | src/systems/animating.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systems/animating.h b/src/systems/animating.h index 150a74a..d6a89a5 100644 --- a/src/systems/animating.h +++ b/src/systems/animating.h | |||
@@ -3,6 +3,7 @@ | |||
3 | 3 | ||
4 | #include "system.h" | 4 | #include "system.h" |
5 | #include <string> | 5 | #include <string> |
6 | #include "renderer.h" | ||
6 | 7 | ||
7 | class AnimatingSystem : public System { | 8 | class AnimatingSystem : public System { |
8 | public: | 9 | public: |
@@ -13,6 +14,8 @@ public: | |||
13 | 14 | ||
14 | void tick(double dt); | 15 | void tick(double dt); |
15 | 16 | ||
17 | void render(Texture& texture); | ||
18 | |||
16 | void startAnimation(id_type entity, std::string animation); | 19 | void startAnimation(id_type entity, std::string animation); |
17 | 20 | ||
18 | }; | 21 | }; |