2014-08-11 18:58:43 +02:00
|
|
|
#ifndef LOADINGSTATE_HPP
|
2014-06-06 13:18:32 +02:00
|
|
|
#define LOADINGSTATE_HPP
|
|
|
|
|
2016-06-22 12:29:39 +02:00
|
|
|
#include <SDL2/SDL_events.h>
|
2014-06-06 13:18:32 +02:00
|
|
|
#include "State.hpp"
|
|
|
|
|
|
|
|
class LoadingState : public State
|
|
|
|
{
|
2015-04-03 02:26:20 +02:00
|
|
|
State* next;
|
2014-06-06 13:18:32 +02:00
|
|
|
public:
|
2014-09-16 20:22:43 +02:00
|
|
|
LoadingState(RWGame* game);
|
2014-06-06 13:18:32 +02:00
|
|
|
|
|
|
|
virtual void enter();
|
|
|
|
virtual void exit();
|
|
|
|
|
|
|
|
virtual void tick(float dt);
|
|
|
|
|
2015-02-07 23:55:06 +01:00
|
|
|
virtual void draw(GameRenderer* r);
|
2014-06-06 13:18:32 +02:00
|
|
|
|
2015-04-03 02:26:20 +02:00
|
|
|
void setNextState(State* nextState);
|
2015-04-03 16:38:24 +02:00
|
|
|
|
|
|
|
virtual bool shouldWorldUpdate();
|
2015-04-03 02:26:20 +02:00
|
|
|
|
2016-06-22 12:29:39 +02:00
|
|
|
virtual void handleEvent(const SDL_Event& event);
|
2014-06-06 13:18:32 +02:00
|
|
|
};
|
|
|
|
|
2014-08-11 18:58:43 +02:00
|
|
|
#endif // LOADINGSTATE_HPP
|