rope: CheezeMonkey (omg I mentioned your name :O) has pointed out that there is still a way to get stuck in walls. This should fix it.
NOTE: although not necessary for this fix to work rope behavior got also changed:
I removed the direction-bias. if you press left and right at the same time the result is now neutral rather than left.
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class MainWindow;
}
class DrawMapScene;
class MainWindow : public QMainWindow {
Q_OBJECT
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
protected:
void changeEvent(QEvent *e);
private:
Ui::MainWindow *ui;
DrawMapScene * scene;
private slots:
void on_pbLoad_clicked();
void on_pbSave_clicked();
void scene_pathChanged();
};
#endif // MAINWINDOW_H