diff options
author | Aki <please@ignore.pl> | 2022-04-18 20:14:53 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-18 20:15:05 +0200 |
commit | bbec07ab3de333649d14a64fa01f7e8ad6d56c58 (patch) | |
tree | 06a4cb6e677388da4865075229e4db4090418b83 /Generator.h | |
parent | a5f91f4d56106112565239c283441432c443c4d2 (diff) | |
download | bullethell2022-bbec07ab3de333649d14a64fa01f7e8ad6d56c58.zip bullethell2022-bbec07ab3de333649d14a64fa01f7e8ad6d56c58.tar.gz bullethell2022-bbec07ab3de333649d14a64fa01f7e8ad6d56c58.tar.bz2 |
Added naive enemy
This reminds me ECS a bit too much but I don't think I want to
implement one right now...
Diffstat (limited to 'Generator.h')
-rw-r--r-- | Generator.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Generator.h b/Generator.h index 5beef2c..1679055 100644 --- a/Generator.h +++ b/Generator.h @@ -1,8 +1,18 @@ #pragma once +#include <memory> -struct Generator +#include <raylib.h> + + +class Generator { +public: virtual ~Generator() = default; virtual void update(float dt) = 0; + void attach(std::shared_ptr<Vector2> origin); + void detach(); + Vector2 position() const; +protected: + std::shared_ptr<Vector2> m_origin; }; |