50 lines
682 B
C++
50 lines
682 B
C++
/*
|
|
* FarmlandsGame.h
|
|
*
|
|
* Created on: Nov 7, 2016
|
|
* Author: tibi
|
|
*/
|
|
|
|
#ifndef FARMLANDSGAME_H_
|
|
#define FARMLANDSGAME_H_
|
|
|
|
#include "resources/ResourceManager.h"
|
|
|
|
#include <SDL2/SDL.h>
|
|
|
|
namespace farmlands
|
|
{
|
|
enum GameState
|
|
{
|
|
Splash,
|
|
MainMenu,
|
|
Playing
|
|
};
|
|
|
|
class FarmlandsGame {
|
|
|
|
public:
|
|
int run();
|
|
FarmlandsGame();
|
|
|
|
protected:
|
|
bool initialize();
|
|
|
|
void onLogicUpdate();
|
|
void onRender();
|
|
void onEvent(SDL_Event& event);
|
|
|
|
void stop();
|
|
void dispose();
|
|
|
|
private:
|
|
bool m_running;
|
|
SDL_Window* m_sdlWindow;
|
|
SDL_Renderer* m_sdlRenderer;
|
|
//enum GameState m_state;
|
|
|
|
resources::ResourceManager m_resourceManager;
|
|
};
|
|
}
|
|
#endif /* FARMLANDSGAME_H_ */
|