44 lines
651 B
C++
44 lines
651 B
C++
/*
|
|
* GuiController.h
|
|
*
|
|
* Created on: Nov 26, 2016
|
|
* Author: tibi
|
|
*/
|
|
|
|
#ifndef CONTROLLER_GUICONTROLLER_H_
|
|
#define CONTROLLER_GUICONTROLLER_H_
|
|
|
|
#include <SDL2/SDL.h>
|
|
|
|
namespace farmlands {
|
|
|
|
// Forward declarations
|
|
struct GameState;
|
|
|
|
namespace controller {
|
|
|
|
class GuiController
|
|
{
|
|
public:
|
|
GuiController();
|
|
virtual ~GuiController();
|
|
|
|
/**
|
|
* Initializes game renderer
|
|
*/
|
|
void initialize(GameState* gameState);
|
|
|
|
/**
|
|
* Processes an UI event
|
|
*/
|
|
bool processEvent(SDL_Event& event);
|
|
|
|
private:
|
|
GameState* m_gameState;
|
|
};
|
|
|
|
} /* namespace controller */
|
|
} /* namespace farmlands */
|
|
|
|
#endif /* CONTROLLER_GUICONTROLLER_H_ */
|