aboutsummaryrefslogtreecommitdiff
path: root/src/crepe
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe')
-rw-r--r--src/crepe/api/ParticleEmitter.h6
-rw-r--r--src/crepe/system/ParticleSystem.cpp1
-rw-r--r--src/crepe/system/ParticleSystem.h4
3 files changed, 6 insertions, 5 deletions
diff --git a/src/crepe/api/ParticleEmitter.h b/src/crepe/api/ParticleEmitter.h
index 2cda1bb..e81ed3b 100644
--- a/src/crepe/api/ParticleEmitter.h
+++ b/src/crepe/api/ParticleEmitter.h
@@ -5,9 +5,9 @@
#include "Component.h"
#include "Particle.h"
-#include "Transform.h"
+#include "Sprite.h"
-class Sprite;
+// class Sprite;
namespace crepe {
@@ -70,7 +70,7 @@ public:
//! collection of particles
std::vector<Particle> particles;
//! sprite reference
- const Sprite* sprite;
+ const Sprite& sprite;
};
public:
/**
diff --git a/src/crepe/system/ParticleSystem.cpp b/src/crepe/system/ParticleSystem.cpp
index 33027f8..ad6699b 100644
--- a/src/crepe/system/ParticleSystem.cpp
+++ b/src/crepe/system/ParticleSystem.cpp
@@ -4,6 +4,7 @@
#include "api/ParticleEmitter.h"
#include "api/Vector2.h"
+#include "api/Transform.h"
#include "ComponentManager.h"
#include "ParticleSystem.h"
diff --git a/src/crepe/system/ParticleSystem.h b/src/crepe/system/ParticleSystem.h
index df89ed9..023a886 100644
--- a/src/crepe/system/ParticleSystem.h
+++ b/src/crepe/system/ParticleSystem.h
@@ -1,9 +1,9 @@
#pragma once
-#include "../api/ParticleEmitter.h"
namespace crepe {
-
+class ParticleEmitter;
+class Transform;
/**
* \brief ParticleSystem class responsible for managing particle emission, updates, and bounds checking.
*/