<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="http://svn.reviewboard.kde.org/r/6541/">http://svn.reviewboard.kde.org/r/6541/</a>
     </td>
    </tr>
   </table>
   <br />


<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('http://svn.reviewboard.kde.orgrb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for KDE Games.</div>
<div>By Julian Helfferich.</div>





<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I have moved the function loadLevel() in GameEngine to an external class LevelLoader and changed the style of the levelsets from a KConfig style to a QDocument object model (QDom) / XML-style. This is the first step in empowering (and encouraging) players to create, share and play their custom levelsets.

This patch addresses no bug and adds no feature. There are no changes to the user experience.

The QDom-style levelsets provide two main advantages:
1. More robust against errors:
Checks can be implemented very easily. An invalid levelset now leads to an empty level which can be played (but never won, because no last brick can be destroyed) instead of strange behaviour (mouse visible, but confined to KBreakout-Window). For the old style a list of gift types and a corresponding number of gift types had to be maintained in globals.h . This is not needed with the QDom-style.
2. Easily extendable:
Up to now the only two options are identical with the old style: &lt;line&gt;&lt;/line&gt; and &lt;gift&gt;&lt;/gift&gt;. New options are planned including &lt;brick&gt;&lt;/brick&gt; for the placement of single bricks and the possibility to set the position of a gift. This should empower the user to create his own levelsets with different written styles.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Testing has been done with a version prior to the port to KGameRenderer. Since the patch does interact with graphics, this should have no effects. Code works as expected, even when dealing with a broken levelset file.</pre>
  </td>
 </tr>
</table>




<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>/trunk/KDE/kdegames/kbreakout/CMakeLists.txt <span style="color: grey">(1221881)</span></li>

 <li>/trunk/KDE/kdegames/kbreakout/levelsets/default.levelset <span style="color: grey">(1221881)</span></li>

 <li>/trunk/KDE/kdegames/kbreakout/src/CMakeLists.txt <span style="color: grey">(1221881)</span></li>

 <li>/trunk/KDE/kdegames/kbreakout/src/brick.h <span style="color: grey">(1221881)</span></li>

 <li>/trunk/KDE/kdegames/kbreakout/src/brick.cpp <span style="color: grey">(1221881)</span></li>

 <li>/trunk/KDE/kdegames/kbreakout/src/gameengine.h <span style="color: grey">(1221881)</span></li>

 <li>/trunk/KDE/kdegames/kbreakout/src/gameengine.cpp <span style="color: grey">(1221881)</span></li>

 <li>/trunk/KDE/kdegames/kbreakout/src/gift.cpp <span style="color: grey">(1221881)</span></li>

 <li>/trunk/KDE/kdegames/kbreakout/src/globals.h <span style="color: grey">(1221881)</span></li>

 <li>/trunk/KDE/kdegames/kbreakout/src/levelloader.h <span style="color: grey">(PRE-CREATION)</span></li>

 <li>/trunk/KDE/kdegames/kbreakout/src/levelloader.cpp <span style="color: grey">(PRE-CREATION)</span></li>

</ul>

<p><a href="http://svn.reviewboard.kde.org/r/6541/diff/" style="margin-left: 3em;">View Diff</a></p>




  </td>
 </tr>
</table>




  </div>
 </body>
</html>