|
//Camera class header
|
|
|
|
#ifndef __CAMERA_H_INCLUDED__
|
|
#define __CAMERA_H_INCLUDED__
|
|
|
|
#include"player.h"
|
|
|
|
class Camera{
|
|
public:
|
|
Camera(int mapWidth,int screenWidth);
|
|
void update(int playerX, int playerY);
|
|
int getPosX();
|
|
int getPosY();
|
|
private:
|
|
int posX, posY;
|
|
int mW, scW;
|
|
};
|
|
|
|
#endif
|