diff options
author | Aki <please@ignore.pl> | 2022-04-18 22:40:41 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-18 22:40:41 +0200 |
commit | 5bb6b95fe71d33956491b98c29bf464a440ad221 (patch) | |
tree | d084a1214548ca7c3e9cf167c7462966d0f7fc7f /Generator.h | |
parent | 9dc6e5dcc108cd887891756a54748aab62f19626 (diff) | |
download | bullethell2022-5bb6b95fe71d33956491b98c29bf464a440ad221.zip bullethell2022-5bb6b95fe71d33956491b98c29bf464a440ad221.tar.gz bullethell2022-5bb6b95fe71d33956491b98c29bf464a440ad221.tar.bz2 |
Added toggle for base generator
Diffstat (limited to 'Generator.h')
-rw-r--r-- | Generator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Generator.h b/Generator.h index 1679055..de3812a 100644 --- a/Generator.h +++ b/Generator.h @@ -8,11 +8,14 @@ class Generator { public: + Generator(); virtual ~Generator() = default; virtual void update(float dt) = 0; + void toggle(bool enabled); void attach(std::shared_ptr<Vector2> origin); void detach(); Vector2 position() const; protected: + bool m_enabled; std::shared_ptr<Vector2> m_origin; }; |