1 #ifndef RADIX_BASEGAME_HPP
2 #define RADIX_BASEGAME_HPP
64 std::shared_ptr<radix::Screen>
screen;
Window window
Definition: BaseGame.hpp:56
Definition: GameController.hpp:7
static Fps fps
Definition: BaseGame.hpp:24
Config config
Definition: BaseGame.hpp:58
virtual ~BaseGame()
Definition: BaseGame.cpp:25
Definition: Window.hpp:22
std::unique_ptr< Camera > camera
Definition: BaseGame.hpp:63
std::shared_ptr< radix::Screen > screen
Definition: BaseGame.hpp:64
const int SKIP_TIME
Definition: BaseGame.hpp:19
EventDispatcher::CallbackHolder screenshotCallbackHolder
Definition: BaseGame.hpp:65
std::string windowTitle
Definition: BaseGame.hpp:68
Configuration class.
Definition: Config.hpp:19
World * getWorld()
Definition: BaseGame.cpp:67
Definition: ScreenRenderer.hpp:14
unsigned int lastUpdate
Definition: BaseGame.hpp:71
std::string defaultMap
Definition: BaseGame.hpp:67
Window & getWindow()
Definition: BaseGame.hpp:47
virtual void processInput()
Definition: BaseGame.cpp:93
virtual void update()
Definition: BaseGame.cpp:79
std::shared_ptr< ScreenRenderer > screenRenderer
Definition: BaseGame.hpp:61
virtual void cleanUp()
Definition: BaseGame.cpp:96
World world
Definition: BaseGame.hpp:57
ScreenRenderer * getScreenRenderer()
Definition: BaseGame.cpp:71
virtual void render()
Definition: BaseGame.cpp:101
unsigned int currentTime
Definition: BaseGame.hpp:71
unsigned int nextUpdate
Definition: BaseGame.hpp:71
GameWorld * getGameWorld()
Definition: BaseGame.cpp:75
Definition: GameWorld.hpp:10
virtual void close()
Definition: BaseGame.cpp:122
void loadMap()
Definition: BaseGame.cpp:126
virtual void prepareCamera()
Definition: BaseGame.cpp:110
GameWorld gameWorld
Definition: BaseGame.hpp:59
bool isRunning()
Definition: BaseGame.cpp:63
Definition: EventDispatcher.hpp:20
BaseGame()
Definition: BaseGame.cpp:14
BaseGame operator=(const BaseGame &)=delete
Definition: BaseGame.hpp:22
const int UPDATE_RATE
Definition: BaseGame.hpp:18
const int MAX_SKIP
Definition: BaseGame.hpp:20
bool closed
Definition: BaseGame.hpp:70
virtual void initHook()
Definition: BaseGame.cpp:94
void setup()
Definition: BaseGame.cpp:28
std::unique_ptr< Renderer > renderer
Definition: BaseGame.hpp:62
unsigned int lastRender
Definition: BaseGame.hpp:71