AlpacaLibary  1.63
A closed source C++ bot for OSRS
Minimap.hpp
Go to the documentation of this file.
1 #ifndef MINIMAP_HPP_INCLUDED
2 #define MINIMAP_HPP_INCLUDED
3 
4 #include "../../Core/Types/Tile.hpp"
5 #include "../../Core/Types/Point.hpp"
6 #include "../../Core/Classes/Region.hpp"
7 #include <cstdint>
8 #include <functional>
9 
10 namespace Minimap
11 {
23  std::int32_t GetPlane();
36 
44  bool IsCloseTo(const Tile& T, std::int32_t Distance);
51  bool IsTileOn(const Tile& T);
52 
58  bool ClickCure();
59 
65  bool ClickCompass(); // Clicks north
66 
73 
80  bool ClickSpecial();
81 
82  bool ClickTile(const Tile& T, std::int32_t Random = 5);
83 
84  bool WalkPath(const std::vector<Tile>& Path, std::int32_t Distance, std::int32_t Random);
85  bool WalkPath(const std::vector<Tile>& Path, std::int32_t Distance, std::int32_t Random, std::function<bool()> Func);
86 
87  bool IsReachable(const Tile& T);
88 }
89 
90 #endif // MINIMAP_HPP_INCLUDED
Definition: Point.hpp:10
Definition: Tile.hpp:8
bool ClickCompass()
Clicks on the minimap compass to quickly face North.
Tile GetDestination()
Returns the tile of the local players destination.
bool ClickToggleRun()
Clicks the toggle-run orb.
Tile GetPosition()
Returns the tile the local player is on.
Point GetMiddle()
Returns the middle point of the minimap.
bool ClickSpecial()
bool WalkPath(const std::vector< Tile > &Path, std::int32_t Distance, std::int32_t Random)
bool ClickTile(const Tile &T, std::int32_t Random=5)
bool IsCloseTo(const Tile &T, std::int32_t Distance)
Returns true if the local players position is close to the passed tile, uses pixels as distance.
bool ClickQuickPrayer()
Clicks the quick-prayer orb.
bool IsTileOn(const Tile &T)
Returns true if the passed tile is on the minimap.
bool IsReachable(const Tile &T)
bool ClickCure()
When poisoned, clicks on the health orb to cure.
std::int32_t GetPlane()
Returns the plane the local player is on.