summaryrefslogtreecommitdiff
path: root/src/game/GameView.h
diff options
context:
space:
mode:
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();