summaryrefslogtreecommitdiffhomepage
path: root/Enemy.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-20 00:28:48 +0200
committerAki <please@ignore.pl>2022-04-20 00:28:48 +0200
commitfd9232b3d3a3aee28a5965a5ebc4077f8db7c652 (patch)
treee9bdb832ed15704f5640ffc9543131f02e6e6e32 /Enemy.h
parent5f0c15b2d3299ea210a78d54e9b10c3cb4266139 (diff)
downloadbullethell2022-fd9232b3d3a3aee28a5965a5ebc4077f8db7c652.zip
bullethell2022-fd9232b3d3a3aee28a5965a5ebc4077f8db7c652.tar.gz
bullethell2022-fd9232b3d3a3aee28a5965a5ebc4077f8db7c652.tar.bz2
Streamlined enemy composition
Diffstat (limited to 'Enemy.h')
-rw-r--r--Enemy.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Enemy.h b/Enemy.h
index 22fc4f7..4305026 100644
--- a/Enemy.h
+++ b/Enemy.h
@@ -15,13 +15,13 @@ public:
Enemy();
Enemy(
std::shared_ptr<Vector2> position,
- std::unique_ptr<Generator> generator,
- std::unique_ptr<Behaviour> behaviour);
+ std::shared_ptr<Generator> generator,
+ std::shared_ptr<Behaviour> behaviour);
void update(float dt);
void draw();
private:
float m_hold;
std::shared_ptr<Vector2> m_position;
- std::unique_ptr<Generator> m_generator;
- std::unique_ptr<Behaviour> m_behaviour;
+ std::shared_ptr<Generator> m_generator;
+ std::shared_ptr<Behaviour> m_behaviour;
};