farmlands/src/controller/FarmlandsGame.h

45 lines
586 B
C++

/*
* FarmlandsGame.h
*
* Created on: Nov 7, 2016
* Author: tibi
*/
#ifndef FARMLANDSGAME_H_
#define FARMLANDSGAME_H_
#include <GameState.h>
#include <resources/ResourceManager.h>
#include <SDL2/SDL.h>
namespace farmlands {
namespace controller {
class FarmlandsGame {
public:
int run();
FarmlandsGame();
protected:
bool initialize();
void onEvent(SDL_Event& event);
void onUpdateLogic();
void onPreRender();
void onRender();
void onPostRender();
void stop();
private:
bool m_running;
Uint32 m_time;
};
}
}
#endif /* FARMLANDSGAME_H_ */