65 void changeMap(
const std::string &mapName);
The main class responsible for running the game.
int getCurrentTileWidth() const
Convenience functions used to get the current tile width and height.
void videoResized(int width, int height)
const std::string & getCurrentMapName()
Timer mParticleEngineTimer
Map * getCurrentMap()
Returns the currently active map.
int getCurrentTileHeight() const
static Game * instance()
Provides access to the game instance.
void handleInput()
Continuous input handling.
bool keyDownEvent(SDL_KeyboardEvent &event)
Handles an SDL_KEYDOWN event and returns whether it was consumed.
void updateWindowMenuCaptions()
Update the key shortcuts in the window menu.
Game()
Constructs the game, creating all the managers, handlers, engines and GUI windows that make up the ga...
void changeMap(const std::string &mapName)
Changes the currently active map.
~Game()
Destructor, cleans up the game.
void logic()
This method takes the game a small step further.
Simple timer that can be used to check if a certain amount of time has passed.