1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-09 12:22:34 +01:00
openrw/rwgame/GameBase.hpp
Filip Gawin 4a3a6daa9f Change type of GameBase dtor to virtual
There's no usage of this class, so
I've set dtor to pure virtual.
2018-01-08 22:35:21 +00:00

35 lines
601 B
C++

#ifndef RWGAME_GAMEBASE_HPP
#define RWGAME_GAMEBASE_HPP
#include "GameConfig.hpp"
#include "GameWindow.hpp"
#include <core/Logger.hpp>
#include <boost/program_options.hpp>
/**
* @brief Handles basic window and setup
*/
class GameBase {
public:
GameBase(Logger& inlog, int argc, char* argv[]);
virtual ~GameBase() = 0;
GameWindow& getWindow() {
return window;
}
const GameConfig& getConfig() const {
return config;
}
protected:
Logger& log;
GameConfig config;
GameWindow window;
boost::program_options::variables_map options;
};
#endif