From eccafb8d815068d908b998bb6c0b581b076dc78f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 4 Dec 2006 11:20:54 +0000 Subject: Introduced a new class Viewport which combines the drawing code from Engine with the (rather misplaced) input handling from the Gui class. Also, it's a Container itself which should allow for extending it to show Guichan widgets on map coordinates. --- src/engine.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/engine.h') diff --git a/src/engine.h b/src/engine.h index 3ae380d6..dbe1fddc 100644 --- a/src/engine.h +++ b/src/engine.h @@ -26,8 +26,6 @@ #include -extern int camera_x, camera_y; - class Graphics; class Map; class Network; @@ -68,21 +66,9 @@ class Engine */ void draw(Graphics *graphics); - /** - * Toggles whether the path debug graphics are shown - */ - void toggleDebugPath() { mShowDebugPath = !mShowDebugPath; }; - private: - bool mShowDebugPath; - Map *mCurrentMap; Network *mNetwork; - - int scrollRadius; - int scrollLaziness; - float view_x; // current viewpoint in pixels - float view_y; // current viewpoint in pixels }; extern Engine *engine; -- cgit v1.2.3-60-g2f50