forked from NaiJi/project-kyoku
Make GUIState interface, rearrange include
parent
00360f6c8d
commit
92fd5c0c27
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "inputtype.h"
|
||||
#include "game/inputtype.h"
|
||||
|
||||
class Note
|
||||
{
|
@ -1,7 +1,7 @@
|
||||
#ifndef PRECISIONEVALUATOR_H
|
||||
#define PRECISIONEVALUATOR_H
|
||||
|
||||
#include "mathutils.h"
|
||||
#include "game/mathutils.h"
|
||||
#include <numeric>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
@ -1,7 +1,8 @@
|
||||
#ifndef TIMELINE_H
|
||||
#define TIMELINE_H
|
||||
|
||||
#include "mathutils.h"
|
||||
#include "game/mathutils.h"
|
||||
|
||||
#include <memory>
|
||||
#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