summary refs log tree commit diff stats
path: root/src/components.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/components.h')
-rw-r--r--src/components.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components.h b/src/components.h index 3d80d1a..2ec19ff 100644 --- a/src/components.h +++ b/src/components.h
@@ -1,11 +1,13 @@
1#ifndef COMPONENTS_H 1#ifndef COMPONENTS_H
2#define COMPONENTS_H 2#define COMPONENTS_H
3 3
4#include "entity.h"
5#include <utility> 4#include <utility>
6#include <list> 5#include <list>
7#include "map.h" 6#include "renderer.h"
8#include <memory> 7#include "entity.h"
8#include "game.h"
9
10class Map;
9 11
10class UserMovementComponent : public Component { 12class UserMovementComponent : public Component {
11 public: 13 public:
@@ -33,7 +35,7 @@ class PlayerSpriteComponent : public Component {
33 void receive(Game& game, Entity& entity, const Message& msg); 35 void receive(Game& game, Entity& entity, const Message& msg);
34 36
35 private: 37 private:
36 Texture sprite{"../res/Starla.png"}; 38 Texture sprite {"../res/Starla.png"};
37 int animFrame = 0; 39 int animFrame = 0;
38 bool facingLeft = false; 40 bool facingLeft = false;
39 bool isMoving = false; 41 bool isMoving = false;