50 lines
795 B
C++
50 lines
795 B
C++
/*
|
|
* GameState.h
|
|
*
|
|
* Created on: Nov 13, 2016
|
|
* Author: tibi
|
|
*/
|
|
|
|
#ifndef MODEL_GAMESTATE_H_
|
|
#define MODEL_GAMESTATE_H_
|
|
|
|
#include <base/GameObject.h>
|
|
#include <base/RenderContext.h>
|
|
#include <model/Scene.h>
|
|
#include <model/Configuration.h>
|
|
#include <resources/ResourceManager.h>
|
|
|
|
#include <memory>
|
|
|
|
namespace farmlands {
|
|
|
|
class GameState
|
|
{
|
|
public:
|
|
GameState();
|
|
~GameState();
|
|
static GameState& current();
|
|
static void setCurrent(GameState& state);
|
|
|
|
// Game settings
|
|
model::Configuration* config;
|
|
|
|
// Render context
|
|
base::RenderContext renderContext;
|
|
|
|
// Scene
|
|
model::Scene* scene;
|
|
std::vector<base::GameObject*> itemPrefabs;
|
|
|
|
// Misc
|
|
float elapsedTime;
|
|
bool gameInitialized;
|
|
|
|
private:
|
|
static GameState s_current;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* MODEL_GAMESTATE_H_ */
|