This document describes the changes introduced with libkdegames v5, which first appeared in the KDE 4.9 release.
Also, multiple new components have been added which replace existing components. These can be identified by the common class name prefix "Kg". See [[#Reworked components|]] for details.
KGameDifficulty has been replaced by the KgDifficulty and KgDifficultyLevel classes. KgDifficulty stores the current level by itself, and allows for multiple KgDifficulty instances at the same time, although a singleton is provided by the Kg::difficulty() function. The following table shows how to port KGameDifficulty functions:
|Replace this...||...by this||Comment|
|KGameDifficulty::Medium etc.||KgDifficultyLevel::Medium etc.|
|KGameDifficulty::addStandardLevel||Kg::difficulty()->addStandardLevel||As a convenience, consider to use the new addStandardLevelRange method.|
TODO: finish table, commit the functions in namespace Kg