AlpacaLibrary/Include/Game/Interfaces/Minimap.hpp

73 lines
2.1 KiB
C++
Raw Normal View History

2017-12-25 23:49:48 +00:00
#ifndef MINIMAP_HPP_INCLUDED
#define MINIMAP_HPP_INCLUDED
#include "../../Core/Types/Tile.hpp"
#include "../../Core/Types/Point.hpp"
#include "../../Core/Classes/Region.hpp"
#include <cstdint>
/** @addtogroup Interfaces
* @{ */
class Minimap
{
public:
2018-06-07 03:43:38 +00:00
/**
* @brief Returns the middle point of the minimap
*
* @return the middle point of the minimap
*/
2017-12-25 23:49:48 +00:00
static Point GetMiddle();
2018-06-07 03:43:38 +00:00
/**
* @brief Returns the plane the local player is on
*
* @return the plane the local player is on
*/
2017-12-25 23:49:48 +00:00
static std::int32_t GetPlane();
2018-06-07 03:43:38 +00:00
/**
* @brief Returns the tile the local player is on
*
* @return the tile the local player is on
*/
static Tile GetPosition();
/**
* @brief Returns the tile of the local players destination
*
* @return the tile of the local players destination
*/
2018-03-09 20:10:43 +00:00
static Tile GetDestination();
2017-12-25 23:49:48 +00:00
2018-06-07 03:43:38 +00:00
/**
* @brief Returns true if the local players position is close to the passed tile, uses pixels as distance
*
* @param T tile to check
* @param Distance in pixels
* @return true if the local players position is close to the passed tile
*/
static bool IsCloseTo(const Tile& T, std::int32_t Distance);
/**
* @brief Returns true if the passed tile is on the minimap
*
* @param T tile to check
* @return true if the passed tile is on the minimap
*/
static bool IsTileOn(const Tile& T);
2017-12-25 23:49:48 +00:00
2018-06-07 03:43:38 +00:00
/**
* @brief Clicks on the minimap compass to quickly face North
*
* @return true if the function succesfully clicks the compass, and the camera angle is 0 / North
*/
static bool ClickCompass(); // Clicks north
2018-06-28 02:22:43 +00:00
/**
* @brief Clicks the quick-prayer orb
*
* @return true if the function succesfully clicked the orb
*/
static bool ClickQuickPrayer();
2017-12-25 23:49:48 +00:00
};
/** @} */
#endif // MINIMAP_HPP_INCLUDED