20 lines
303 B
C
20 lines
303 B
C
|
//Camera class header
|
||
|
|
||
|
#ifndef __CAMERA_H_INCLUDED__
|
||
|
#define __CAMERA_H_INCLUDED__
|
||
|
|
||
|
#include"entity/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
|