-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCCamera.h
39 lines (34 loc) · 913 Bytes
/
CCamera.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* @file CCamera.h
* @brief Declaration of the CCamera class.
*
* This file contains the declaration of the CCamera class, which represents a camera object in the game.
*/
#pragma once
/**
* @class CCamera
* @brief A class representing a camera object in the game.
*
* This class manages the position of the camera.
*/
class CCamera {
private:
cv::Point camerapos; ///< The position of the camera.
public:
/**
* @brief Constructor for CCamera.
*/
CCamera() { ; }
/**
* @brief Function to get the position of the camera.
* @return The position of the camera.
*/
cv::Point get_camera() {
return camerapos;
}
/**
* @brief Function to set the position of the camera.
* @param setcamera The position to set the camera to.
*/
void set_camera(cv::Point& setcamera) { camerapos = setcamera; }
};