The Game Engine  1
Camera.h
Go to the documentation of this file.
1 #ifndef __CAMERA_H__
2 #define __CAMERA_H__
3 #include "fns.h"
4 #include "WorldObject.h"
5 
13 class Camera
14 {
15 public:
16  Camera():mObject(NULL),pos(),mPadding(),mZoom(1.00){}
17 
20 
26  void follow(WorldObject* o, Point2D padding = Point2D());
27 
31  void stopFollow();
32 
37  void move(Point2D p);
38 
42  void updatePos();
43 
48  void zoom(double zoom);
49 
54  void zoomIn(double zoom);
55 
60  void zoomOut(double zoom);
61 
62 protected:
68  double mZoom;
69 
70 };
71 
72 #endif