#include <Camera.hxx>
Definition at line 9 of file Camera.hxx.
◆ Camera()
◆ ~Camera()
◆ cameraOffset()
const SDL_Point & Camera::cameraOffset |
( |
| ) |
const |
|
noexcept |
◆ canMove()
void Camera::canMove |
( |
bool |
move | ) |
|
|
inline |
◆ canScale()
void Camera::canScale |
( |
bool |
value | ) |
|
|
inline |
◆ centerScreenOnMapCenter()
void Camera::centerScreenOnMapCenter |
( |
| ) |
|
Centers camera on the middle of the map.
Definition at line 75 of file Camera.cxx.
◆ centerScreenOnPoint()
void Camera::centerScreenOnPoint |
( |
const Point & |
isoCoordinates | ) |
|
Centers camera on given isometric coordinates.
- Parameters
-
isoCoordinates | coordinates to center the camera on |
Definition at line 56 of file Camera.cxx.
◆ changeZoomLevel()
void Camera::changeZoomLevel |
( |
bool |
inc | ) |
|
|
inline |
◆ decreaseZoomLevel()
void Camera::decreaseZoomLevel |
( |
| ) |
|
Decreases the zoom level of the camera.
Definition at line 19 of file Camera.cxx.
◆ increaseZoomLevel()
void Camera::increaseZoomLevel |
( |
| ) |
|
Increases the zoom level of the camera.
Definition at line 6 of file Camera.cxx.
◆ moveCamera()
void Camera::moveCamera |
( |
int |
xOffset, |
|
|
int |
yOffset |
|
) |
| |
Move the camera in the given direction.
Definition at line 82 of file Camera.cxx.
◆ setPinchDistance()
void Camera::setPinchDistance |
( |
float |
pinchDistance, |
|
|
int |
isoX, |
|
|
int |
isoY |
|
) |
| |
Sets the pinch distance for touch screens.
- Parameters
-
pinchDistance | the pinch distance |
isoX | the x-center of the pinch |
isoY | the y-center of the pinch |
Definition at line 32 of file Camera.cxx.
◆ tileSize()
const SDL_Point & Camera::tileSize |
( |
| ) |
const |
|
noexcept |
◆ zoomLevel()
const double & Camera::zoomLevel |
( |
| ) |
const |
|
noexcept |
◆ m_CameraOffset
SDL_Point Camera::m_CameraOffset {0, 0} |
|
private |
◆ m_canMove
bool Camera::m_canMove = true |
|
private |
◆ m_canScale
bool Camera::m_canScale = true |
|
private |
◆ m_CenterIsoCoordinates
Point Camera::m_CenterIsoCoordinates |
|
private |
◆ m_PinchDistance
float Camera::m_PinchDistance = 0.f |
|
private |
◆ m_TileSize
SDL_Point Camera::m_TileSize {32, 16} |
|
private |
◆ m_ZoomLevel
double Camera::m_ZoomLevel = 1.0 |
|
private |
the current zoom level of the camera
Definition at line 64 of file Camera.hxx.
◆ Singleton
The documentation for this class was generated from the following files: