diff options
Diffstat (limited to 'TestStage.cpp')
-rw-r--r-- | TestStage.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/TestStage.cpp b/TestStage.cpp new file mode 100644 index 0000000..b257cf6 --- /dev/null +++ b/TestStage.cpp @@ -0,0 +1,35 @@ +#include "TestStage.h" + + +TestStage::TestStage() : + m_player {}, + m_const {}, + m_generator {m_const.m_bullets} +{ +} + + +void +TestStage::update(const float dt) +{ + m_player.update(dt); + m_generator.update(dt); + m_const.update(dt); + bool collided = m_player.collide(m_const.m_bullets); + (void) collided; +} + + +void +TestStage::draw() +{ + m_const.draw(); + m_player.draw(); +} + + +int +TestStage::total_bullets() const +{ + return m_const.m_bullets.size(); +} |