[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/games/magazynier
From: Tadeusz Andrzej Kadłubowski <yess () hell ! org ! pl>
Date: 2009-12-13 12:08:20
Message-ID: 1260706100.722470.14381.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1061953 by tkadlubo:
Fix krazy issues
M +1 -1 astar.cpp
M +2 -2 commands.h
M +1 -1 levelModel.cpp
M +2 -2 window.cpp
--- trunk/playground/games/magazynier/astar.cpp #1061952:1061953
@@ -105,7 +105,7 @@
QList<QPoint> adjacentSquares = findAdjacentSquares(curNode, levelModel);
foreach(const QPoint& pos, adjacentSquares) {
- // Check wheter the position is solid or not
+ // Check whether the position is solid or not
// Empty cell or Goal => Not solid
const MagazynierItem* item = levelModel->getItem(pos);
if(item->itemType()!=Empty && item->itemType()!=Goal)
--- trunk/playground/games/magazynier/commands.h #1061952:1061953
@@ -28,14 +28,14 @@
class MagazynierCommand : public QUndoCommand
{
public:
- MagazynierCommand(LevelModel *levelModel, QUndoCommand *parent = 0) :
+ explicit MagazynierCommand(LevelModel *levelModel, QUndoCommand *parent = 0) :
QUndoCommand(parent),
m_levelModel(levelModel),
m_moveCount(0),
m_shiftCount(0)
{}
- MagazynierCommand(LevelModel *levelModel, QPoint pos, QPoint delta, QUndoCommand \
*parent = 0) : + explicit MagazynierCommand(LevelModel *levelModel, QPoint pos, \
QPoint delta, QUndoCommand *parent = 0) : QUndoCommand(parent),
m_pos(pos),
m_delta(delta),
--- trunk/playground/games/magazynier/levelModel.cpp #1061952:1061953
@@ -453,7 +453,7 @@
if(path!=NULL) {
command = new MagazynierCommand(this);
QPoint prevPos = *m_playerPos;
- foreach(QPoint pos, *path) {
+ foreach(const QPoint pos, *path) {
kDebug() << "Moving from" << prevPos << "by" << pos-prevPos;
move(prevPos, pos-prevPos, command);
prevPos = pos;
--- trunk/playground/games/magazynier/window.cpp #1061952:1061953
@@ -15,6 +15,8 @@
//with this program; if not, write to the Free Software Foundation, Inc.,
//51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#include "window.h"
+
#include <math.h>
#include <KAction>
@@ -46,8 +48,6 @@
#include "levelModel.h"
#include "levelPack.h"
#include "renderer.h"
-#include "window.h"
-
#include "settings.h"
MagazynierWindow::MagazynierWindow(QWidget *parent) : //{{{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic