project-kyoku/application.h

39 lines
742 B
C
Raw Normal View History

2021-04-03 19:14:31 +02:00
#ifndef APPLICATION_H
#define APPLICATION_H
#include <SFML/Graphics/RenderWindow.hpp>
2021-04-04 22:43:12 +02:00
#include <SFML/Audio/Music.hpp>
2021-04-03 19:14:31 +02:00
#include <SFML/System/Clock.hpp>
2021-04-04 22:43:12 +02:00
#include <SFML/Graphics/Text.hpp>
#include <SFML/Graphics/Font.hpp>
2021-04-03 19:14:31 +02:00
#include <SFML/Graphics/RectangleShape.hpp>
#include <stack>
2021-04-04 22:43:12 +02:00
#include "note.h"
2021-04-03 19:14:31 +02:00
class Application
{
public:
Application();
void run();
void update();
void draw();
private:
sf::RenderWindow game_window;
2021-04-04 22:43:12 +02:00
sf::Music music;
2021-04-03 19:14:31 +02:00
sf::RectangleShape pulse_mask;
2021-04-04 22:43:12 +02:00
sf::RectangleShape pulse_mask_green;
2021-04-03 19:14:31 +02:00
2021-04-04 22:43:12 +02:00
std::stack<Note> timeline;
sf::Int64 time_since_last_tick;
sf::Int64 last_stamp;
sf::Font font;
sf::Font font2;
sf::Text text;
sf::Text grade;
2021-04-03 19:14:31 +02:00
};
#endif // APPLICATION_H