D:/Development/Projects/X-Clone/X-Clone/trunk/Camera.h

Go to the documentation of this file.
00001 #ifndef XCLONE_CAMERA_H
00002 #define XCLONE_CAMERA_H
00003 
00004 #include "includes.h"
00005 
00006 class Camera{
00007    public:
00008       Camera();
00009       Camera(int x, int y);
00010       ~Camera();
00011 
00012       void update(unsigned int deltaTime);
00013       const Point& getPosition() const;
00014       void setPosition(int x, int y);
00015       void setBorders( int left, int right, int top, int bottom );
00016 
00017    private:
00018       int _leftBorder, _rightBorder, _topBorder, _bottomBorder;
00019       Point _position;
00020       static const int _edgeDistance;
00021       static const float _scrollRatio;
00022       static const float _marginRatio;
00023 };
00024 
00025 #endif

Generated on Fri Sep 22 06:00:26 2006 for X-CLONE by  doxygen 1.4.7