5#ifndef __GAME_MANAGER_H__
6#define __GAME_MANAGER_H__
10#define DF_VERSION 4.20
13#define GM df::GameManager::getInstance()
43 bool isValid(std::string event_name)
const override;
Definition: GameManager.h:24
void operator=(GameManager const &)
Don't allow assignment.
static GameManager & getInstance()
Get the singleton instance of the GameManager.
int m_frame_time
Target time per game loop, in millisec.
Definition: GameManager.h:31
int getStepCount() const
Return game loop step count.
bool getGameOver() const
Get game over status.
GameManager()
Private since a singleton.
int getFrameTime() const
Return frame time.
int startUp() override
Startup all GameManager services.
int m_step_count
Count of game loop iterations.
Definition: GameManager.h:32
bool m_game_over
True -> game loop should stop.
Definition: GameManager.h:30
void setGameOver(bool game_over=true)
Set game over status to indicated value.
void shutDown() override
Shut down GameManager services.
GameManager(GameManager const &)
Don't allow copy.
bool isValid(std::string event_name) const override
Game manager only accepts step events.
An animation for a sprite.
Definition: Animation.h:15
const std::string CONFIG_FILENAME
Default Dragonfly cofiguration file.
Definition: GameManager.h:19
const int FRAME_TIME_DEFAULT
Default frame time (game loop time) in milliseconds (33 ms == 30 f/s).
Definition: GameManager.h:22