2014-12-15 16:47:30 +01:00
|
|
|
/*
|
|
|
|
* =====================================================================================
|
|
|
|
*
|
|
|
|
* Filename: ApplicationState.hpp
|
|
|
|
*
|
2018-06-05 01:24:54 +02:00
|
|
|
* Description:
|
2014-12-15 16:47:30 +01:00
|
|
|
*
|
2018-06-05 16:17:40 +02:00
|
|
|
* Created: 05/06/2018 15:45:26
|
2014-12-15 16:47:30 +01:00
|
|
|
*
|
2018-06-05 16:17:40 +02:00
|
|
|
* Author: Quentin Bazin, <quent42340@gmail.com>
|
2014-12-15 16:47:30 +01:00
|
|
|
*
|
|
|
|
* =====================================================================================
|
|
|
|
*/
|
|
|
|
#ifndef APPLICATIONSTATE_HPP_
|
|
|
|
#define APPLICATIONSTATE_HPP_
|
|
|
|
|
|
|
|
class ApplicationState {
|
|
|
|
public:
|
2015-07-17 17:08:53 +02:00
|
|
|
ApplicationState(ApplicationState *parent = nullptr) : m_parent(parent) {}
|
2018-06-05 16:17:40 +02:00
|
|
|
virtual ~ApplicationState() = default;
|
2018-06-05 01:24:54 +02:00
|
|
|
|
2014-12-15 16:47:30 +01:00
|
|
|
virtual void update() = 0;
|
2018-06-05 01:24:54 +02:00
|
|
|
|
2014-12-15 16:47:30 +01:00
|
|
|
virtual void draw() = 0;
|
2018-06-05 16:51:58 +02:00
|
|
|
|
2015-07-17 17:08:53 +02:00
|
|
|
protected:
|
|
|
|
ApplicationState *m_parent = nullptr;
|
2014-12-15 16:47:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // APPLICATIONSTATE_HPP_
|