summaryrefslogtreecommitdiffhomepage
path: root/WaveGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'WaveGenerator.h')
-rw-r--r--WaveGenerator.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/WaveGenerator.h b/WaveGenerator.h
new file mode 100644
index 0000000..c3d52f5
--- /dev/null
+++ b/WaveGenerator.h
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <memory>
+
+#include <raylib.h>
+
+#include "ConstantVelocity.h"
+#include "Generator.h"
+
+
+class WaveGenerator : public Generator
+{
+public:
+ friend class EnemyFactory;
+ WaveGenerator(std::shared_ptr<Vector2> position, ConstantVelocityBullet::Vector& bullets);
+ void update(float dt) override;
+private:
+ std::shared_ptr<Vector2> m_position;
+ ConstantVelocityBullet::Vector& m_bullets;
+ float m_delay;
+ float m_interval;
+ int m_speed;
+ int m_shift;
+ int m_segments;
+ Color m_color;
+};