diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-04 11:20:54 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-04 11:20:54 +0000 |
commit | eccafb8d815068d908b998bb6c0b581b076dc78f (patch) | |
tree | 6967d3ca5fa1dc77b177c2f735469503ca04cd14 /src/engine.h | |
parent | 061b9e817ffe73acca163510b276e6ca7dd8f6c2 (diff) | |
download | mana-eccafb8d815068d908b998bb6c0b581b076dc78f.tar.gz mana-eccafb8d815068d908b998bb6c0b581b076dc78f.tar.bz2 mana-eccafb8d815068d908b998bb6c0b581b076dc78f.tar.xz mana-eccafb8d815068d908b998bb6c0b581b076dc78f.zip |
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.
Diffstat (limited to 'src/engine.h')
-rw-r--r-- | src/engine.h | 14 |
1 files changed, 0 insertions, 14 deletions
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 <iosfwd> -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; |