2021-04-03 19:14:31 +02:00
|
|
|
#ifndef APPLICATION_H
|
|
|
|
#define APPLICATION_H
|
|
|
|
|
|
|
|
#include <SFML/System/Clock.hpp>
|
2021-04-05 16:17:57 +02:00
|
|
|
#include <SFML/Window/Keyboard.hpp>
|
2021-04-03 19:14:31 +02:00
|
|
|
|
2021-04-05 16:17:57 +02:00
|
|
|
#include "debughelper.h"
|
2021-04-08 15:34:03 +02:00
|
|
|
#include "timeline.h"
|
2021-04-08 18:08:01 +02:00
|
|
|
#include "note.h"
|
2021-06-07 20:19:58 +02:00
|
|
|
#include "game.h"
|
2021-04-04 22:43:12 +02:00
|
|
|
|
2021-04-03 19:14:31 +02:00
|
|
|
class Application
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Application();
|
2021-06-09 20:08:58 +02:00
|
|
|
~Application();
|
2021-04-03 19:14:31 +02:00
|
|
|
void run();
|
2021-04-05 16:17:57 +02:00
|
|
|
void input();
|
2021-04-03 19:14:31 +02:00
|
|
|
void update();
|
|
|
|
void draw();
|
|
|
|
|
|
|
|
private:
|
2021-04-05 16:17:57 +02:00
|
|
|
sf::RenderWindow _game_window;
|
|
|
|
|
|
|
|
sf::Font _font;
|
|
|
|
sf::Text _grade;
|
|
|
|
|
2021-04-17 18:14:36 +02:00
|
|
|
std::unique_ptr<Timeline> _timeline;
|
2021-04-05 16:17:57 +02:00
|
|
|
DebugHelper _debug;
|
|
|
|
|
2021-06-07 20:19:58 +02:00
|
|
|
std::unique_ptr<Game> _game;
|
|
|
|
|
2021-04-05 16:17:57 +02:00
|
|
|
void startGameLoop();
|
2021-04-03 19:14:31 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // APPLICATION_H
|