summaryrefslogtreecommitdiffhomepage
path: root/ExampleGenerator.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-18 10:36:19 +0200
committerAki <please@ignore.pl>2022-04-18 10:36:19 +0200
commit7e1081ff8f1297486e177bd716fecebb42c0182a (patch)
tree031f47bce6b1ecab5303139cb425ebf6ed5709d4 /ExampleGenerator.h
parent8209bbaf2a046199b9c65438fb4454ce01b42500 (diff)
downloadbullethell2022-7e1081ff8f1297486e177bd716fecebb42c0182a.zip
bullethell2022-7e1081ff8f1297486e177bd716fecebb42c0182a.tar.gz
bullethell2022-7e1081ff8f1297486e177bd716fecebb42c0182a.tar.bz2
Added base class for generators
Diffstat (limited to 'ExampleGenerator.h')
-rw-r--r--ExampleGenerator.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ExampleGenerator.h b/ExampleGenerator.h
index 0e3372b..25c4ce3 100644
--- a/ExampleGenerator.h
+++ b/ExampleGenerator.h
@@ -1,16 +1,16 @@
#pragma once
-#include <vector>
-
#include <raylib.h>
#include "Bullets.h"
+#include "Generator.h"
-struct ExampleGenerator
+struct ExampleGenerator : public Generator
{
- ExampleGenerator();
- void update(float dt, std::vector<ConstantVelocityBullet>& bullets);
+ explicit ExampleGenerator(ConstantVelocityBullet::Vector& bullets);
+ void update(float dt) override;
+ ConstantVelocityBullet::Vector& m_bullets;
float m_delay;
float m_interval;
float m_cone;