forked from NaiJi/project-kyoku
Make GUIState interface, rearrange include
parent
00360f6c8d
commit
92fd5c0c27
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "inputtype.h"
|
#include "game/inputtype.h"
|
||||||
|
|
||||||
class Note
|
class Note
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
#ifndef PRECISIONEVALUATOR_H
|
#ifndef PRECISIONEVALUATOR_H
|
||||||
#define PRECISIONEVALUATOR_H
|
#define PRECISIONEVALUATOR_H
|
||||||
|
|
||||||
#include "mathutils.h"
|
#include "game/mathutils.h"
|
||||||
#include <numeric>
|
#include <numeric>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <vector>
|
#include <vector>
|
@ -1,7 +1,8 @@
|
|||||||
#ifndef TIMELINE_H
|
#ifndef TIMELINE_H
|
||||||
#define TIMELINE_H
|
#define TIMELINE_H
|
||||||
|
|
||||||
#include "mathutils.h"
|
#include "game/mathutils.h"
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
@ -0,0 +1,15 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <stack>
|
||||||
|
#include <memory>
|
||||||
|
#include <SFML/Window/Event.hpp>
|
||||||
|
#include <SFML/Graphics/Drawable.hpp>
|
||||||
|
|
||||||
|
class GUIState : public sf::Drawable
|
||||||
|
{
|
||||||
|
virtual ~GUIState() = default;
|
||||||
|
|
||||||
|
virtual void input(const sf::Event& event, std::stack<std::shared_ptr<GUIState>>& states) = 0;
|
||||||
|
virtual void update() = 0;
|
||||||
|
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const = 0;
|
||||||
|
};
|
Loading…
Reference in New Issue