 |
Cytopia
0.3
A city building simulation game
|
Go to the documentation of this file.
5 #include "../../util/Singleton.hxx"
53 const SDL_Point &
tileSize() const noexcept;
void centerScreenOnMapCenter()
Centers camera on the middle of the map.
double m_ZoomLevel
the current zoom level of the camera
void moveCamera(int xOffset, int yOffset)
Move the camera in the given direction.
void increaseZoomLevel()
Increases the zoom level of the camera.
void decreaseZoomLevel()
Decreases the zoom level of the camera.
void changeZoomLevel(bool inc)
void setPinchDistance(float pinchDistance, int isoX, int isoY)
Sets the pinch distance for touch screens.
const double & zoomLevel() const noexcept
Abstract Singleton implementation.
Point m_CenterIsoCoordinates
void centerScreenOnPoint(const Point &isoCoordinates)
Centers camera on given isometric coordinates.
const SDL_Point & cameraOffset() const noexcept
void canScale(bool value)
const SDL_Point & tileSize() const noexcept