diff options
Diffstat (limited to 'ConstantVelocity.h')
-rw-r--r-- | ConstantVelocity.h | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/ConstantVelocity.h b/ConstantVelocity.h index 3970aff..e28400d 100644 --- a/ConstantVelocity.h +++ b/ConstantVelocity.h @@ -5,22 +5,6 @@ #include <raylib.h> -static constexpr float MARGIN {40}; - - -struct ConstantVelocityBullet; - - -struct ConstantVelocitySystem -{ - ConstantVelocitySystem(); - explicit ConstantVelocitySystem(int reserved); - void update(float dt); - void draw(); - std::vector<ConstantVelocityBullet> m_bullets; -}; - - struct ConstantVelocityBullet { using Vector = std::vector<ConstantVelocityBullet>; @@ -29,3 +13,15 @@ struct ConstantVelocityBullet float radius; Color color; }; + + +struct ConstantVelocitySystem +{ + static constexpr float MARGIN {40}; + static constexpr int RESERVED {10000}; + + ConstantVelocitySystem(); + void update(float dt); + void draw(); + ConstantVelocityBullet::Vector m_bullets; +}; |