mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
51 lines
1.3 KiB
C++
Executable File
51 lines
1.3 KiB
C++
Executable File
#pragma once
|
|
#ifndef GAME_MANAGER_H
|
|
#define GAME_MANAGER_H
|
|
|
|
#include "defConfigs.h"
|
|
#include "abstractAppState.h"
|
|
#include "key.h"
|
|
#include "util.h"
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
namespace game{
|
|
namespace gui{
|
|
class AbstractBitmapText;
|
|
class AbstractImage;
|
|
}
|
|
|
|
typedef gui::AbstractBitmapText BitmapText;
|
|
typedef gui::AbstractImage Image;
|
|
|
|
namespace core{
|
|
class InputManager;
|
|
class StateManager;
|
|
|
|
class GameManager {
|
|
public:
|
|
static GameManager* getSingleton();
|
|
void update();
|
|
inline int getWidth(){return width;}
|
|
inline int getHeight(){return height;}
|
|
inline InputManager* getListener(){return listener;}
|
|
inline bool isServerSide(){return serverSide;}
|
|
inline StateManager* getStateManager(){return stateManager;}
|
|
private:
|
|
GameManager();
|
|
~GameManager();
|
|
|
|
StateManager *stateManager = nullptr;
|
|
std::vector<AbstractAppState*> appStates;
|
|
int width, height;
|
|
std::vector<gui::AbstractBitmapText*> bitmapTexts;
|
|
std::vector<gui::AbstractImage*> images;
|
|
InputManager *listener = nullptr;
|
|
bool serverSide;
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif
|