summaryrefslogtreecommitdiff
path: root/src/game/GameView.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-07-03 12:32:08 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-07-03 12:32:08 (GMT)
commit5edca6e243566b605dede49e69c73cf38c1844cd (patch)
treef2c6898697de094510d102e14c8243a0cd28b383 /src/game/GameView.h
parent8b200ab326c0e7af52290b042d85641cc085982a (diff)
downloadpowder-5edca6e243566b605dede49e69c73cf38c1844cd.zip
powder-5edca6e243566b605dede49e69c73cf38c1844cd.tar.gz
Line snapping in gameview - hold alt
Diffstat (limited to 'src/game/GameView.h')
-rw-r--r--src/game/GameView.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/GameView.h b/src/game/GameView.h
index ecf2ff3..4576b13 100644
--- a/src/game/GameView.h
+++ b/src/game/GameView.h
@@ -35,6 +35,7 @@ private:
bool isMouseDown;
bool zoomEnabled;
bool zoomCursorFixed;
+ bool drawSnap;
int toolIndex;
queue<ui::Point*> pointQueue;
GameController * c;
@@ -82,6 +83,8 @@ private:
int lastOffset;
void setToolButtonOffset(int offset);
void changeColour();
+ virtual ui::Point lineSnapCoords(ui::Point point1, ui::Point point2);
+ virtual ui::Point rectSnapCoords(ui::Point point1, ui::Point point2);
public:
GameView();