From 5f0c15b2d3299ea210a78d54e9b10c3cb4266139 Mon Sep 17 00:00:00 2001 From: Aki Date: Tue, 19 Apr 2022 23:48:20 +0200 Subject: Created factory to handle enemy creation --- EnemyFactory.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 EnemyFactory.h (limited to 'EnemyFactory.h') diff --git a/EnemyFactory.h b/EnemyFactory.h new file mode 100644 index 0000000..0475a25 --- /dev/null +++ b/EnemyFactory.h @@ -0,0 +1,10 @@ +#pragma once + +#include "ConstantVelocity.h" +#include "Enemy.h" + + +struct EnemyFactory +{ + static Enemy make_example(ConstantVelocityBullet::Vector& bullets, float x, float y, float hold, bool mirror=false); +}; -- cgit v1.1