1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 18:32:44 +01:00
openrw/rwgame/states/LoadingState.hpp

26 lines
508 B
C++
Raw Normal View History

#ifndef LOADINGSTATE_HPP
2014-06-06 13:18:32 +02:00
#define LOADINGSTATE_HPP
#include "StateManager.hpp"
2014-06-06 13:18:32 +02:00
#include <functional>
2014-06-06 13:18:32 +02:00
2016-09-09 22:13:20 +02:00
class LoadingState : public State {
std::function<void(void)> complete;
2016-09-09 22:13:20 +02:00
2014-06-06 13:18:32 +02:00
public:
LoadingState(RWGame* game, std::function<void(void)> callback);
2016-09-09 22:13:20 +02:00
virtual void enter();
virtual void exit();
2014-06-06 13:18:32 +02:00
2016-09-09 22:13:20 +02:00
virtual void tick(float dt);
2014-06-06 13:18:32 +02:00
2016-09-09 22:13:20 +02:00
virtual void draw(GameRenderer* r);
2014-06-06 13:18:32 +02:00
virtual bool shouldWorldUpdate();
2016-09-09 22:13:20 +02:00
virtual void handleEvent(const SDL_Event& event);
2014-06-06 13:18:32 +02:00
};
2016-09-09 22:13:20 +02:00
#endif // LOADINGSTATE_HPP