From 21e1b08b8399bad5a8b88cf6e30b2db9edd0ad60 Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Tue, 11 Mar 2014 19:54:22 +0100 Subject: ILLUSIONS: More work on the camera and background classes --- engines/illusions/camera.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'engines/illusions/camera.h') diff --git a/engines/illusions/camera.h b/engines/illusions/camera.h index fae3c328ac..816c5dda21 100644 --- a/engines/illusions/camera.h +++ b/engines/illusions/camera.h @@ -32,7 +32,7 @@ namespace Illusions { struct CameraState { int _cameraMode; //field_2 dw - int16 _paused; + bool _paused; int16 _panSpeed; int _someX, _someY; Common::Point _currPan; @@ -55,13 +55,26 @@ struct CameraState { class Camera { public: - Camera(); + Camera(IllusionsEngine *vm); void clearStack(); void set(Common::Point &panPoint, WidthHeight &dimensions); + void pause(); + void unpause(); + void update(uint32 currTime); + void setBounds(Common::Point &minPt, Common::Point &maxPt); + void setBoundsToDimensions(WidthHeight &dimensions); Common::Point getCurrentPan(); + Common::Point getScreenOffset(); protected: + IllusionsEngine *_vm; CameraState _activeState; Common::FixedStack _stack; + void updateMode1(uint32 currTime); + void updateMode2(uint32 currTime); + void updateMode3(uint32 currTime); + bool updatePan(uint32 currTime); + bool isPanFinished(); + Common::Point getPtOffset(Common::Point pt); }; } // End of namespace Illusions -- cgit v1.2.3