AlpacaLibary  1.63
A closed source C++ bot for OSRS
Camera.hpp
Go to the documentation of this file.
1 #ifndef CAMERA_HPP_INCLUDED
2 #define CAMERA_HPP_INCLUDED
3 
4 #include "../../Core/Types/Tile.hpp"
5 #include <cstdint>
6 
7 namespace Camera
8 {
9  typedef enum COMPASS_DIRECTION
10  {
11  NORTH = 0,
12  EAST = 90,
13  SOUTH = 180,
14  WEST = 270
16 
17  typedef enum CAMERA_PITCH
18  {
19  LOWEST = 128,
20  MIDDLE = 191,
21  HIGHEST = 383
23 
24  std::int32_t GetX();
25  std::int32_t GetY();
26  std::int32_t GetZ();
27  std::int32_t GetYaw();
28  double GetAngle();
29  std::int32_t GetPitch();
30  double GetZoom();
31 
39  bool RotateTo(std::int32_t Angle, std::int32_t Tolerance = 10);
47  bool RotateTo(COMPASS_DIRECTION Direction, std::int32_t Tolerance = 10);
56  bool RotateTo(const Tile& T, std::int32_t Angle = 0, std::int32_t Tolerance = 10);
65  bool RotateTo(const Tile& T, COMPASS_DIRECTION Direction = NORTH, std::int32_t Tolerance = 10);
66 
73  bool SetPitch(std::int32_t Pitch);
80  bool SetPitch(CAMERA_PITCH Pitch);
81 
82 /* *//*
87  bool SetZoom(double Zoom);*/
88 }
89 
90 #endif // CAMERA_HPP_INCLUDED
Definition: Tile.hpp:8
Definition: Camera.hpp:8
std::int32_t GetX()
std::int32_t GetZ()
bool SetPitch(std::int32_t Pitch)
Sets the pitch of the camera.
std::int32_t GetPitch()
double GetZoom()
double GetAngle()
bool RotateTo(std::int32_t Angle, std::int32_t Tolerance=10)
Rotates the camera to the passed angle/degree.
std::int32_t GetY()
std::int32_t GetYaw()
COMPASS_DIRECTION
Definition: Camera.hpp:10
@ WEST
Definition: Camera.hpp:14
@ NORTH
Definition: Camera.hpp:11
@ EAST
Definition: Camera.hpp:12
@ SOUTH
Definition: Camera.hpp:13
CAMERA_PITCH
Definition: Camera.hpp:18
@ MIDDLE
Definition: Camera.hpp:20
@ LOWEST
Definition: Camera.hpp:19
@ HIGHEST
Definition: Camera.hpp:21