/** * \brief Returns whether the game is suspended. * * This is true in the following cases: * - the game is paused, * - a dialog a being dispayed, * - a transition between two maps is playing, * - the game over sequence is active, * - the camera is moving. * * \return true if the game is suspended */ bool Game::is_suspended() const { return current_map == NULL || is_paused() || is_dialog_enabled() || is_playing_transition() || is_showing_game_over() || current_map->is_camera_moving(); }
/** * @brief Returns whether the game is suspended. * * This is true in the following cases: * - the game is paused, * - a dialog a being dispayed, * - a transition between two maps is playing, * - the game over sequence is active, * - the camera is moving. * * @return true if the game is suspended */ bool Game::is_suspended() { return current_map == NULL || is_paused() || is_showing_message() || is_playing_transition() || is_showing_gameover() || !current_map->is_camera_fixed_on_hero(); }