summaryrefslogtreecommitdiffhomepage
path: root/TestStage.cpp
blob: b257cf66f39a3d9daa720f5ad6f365ef6754a9c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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();
}