AlpacaLibary  1.63
A closed source C++ bot for OSRS
Mainscreen.hpp
Go to the documentation of this file.
1 #ifndef MAINSCREEN_HPP_INCLUDED
2 #define MAINSCREEN_HPP_INCLUDED
3 
4 #include "../../Core/Types/Box.hpp"
5 #include "../../Core/Types/Tile.hpp"
6 #include "../../Core/Classes/Character.hpp"
7 #include <cstdint>
8 #include <string>
9 #include <vector>
10 #include <functional>
11 
15 namespace Mainscreen
16 {
17  typedef enum SCREEN_STATE
18  {
24  PLAYING
26 
27  typedef enum CROSSHAIR_STATE
28  {
31  RED
33 
36 
41  bool IsLoggedIn();
47  bool IsMoving();
53  bool IsAnimating();
54 
55  std::string GetUpText();
56 
57  bool IsUpText(const std::string& UpText);
58  bool IsUpText(const std::vector<std::string>& UpTexts);
59 
60  bool UpTextContains(const std::string& UpText);
61  bool UpTextContains(const std::vector<std::string>& UpTexts);
62  bool UpTextContains(const std::string& UpText, std::uint32_t CheckTime, std::uint32_t FailCheckTime);
63  bool UpTextContains(const std::vector<std::string>& UpTexts, std::uint32_t CheckTime, std::uint32_t FailCheckTime);
64 
65  bool WaitIsUpText(std::uint32_t Duration, std::uint32_t Step, const std::string& UpText);
66 
67  bool WaitUpTextContains(std::uint32_t Duration, std::uint32_t Step, const std::string& UpText);
68  bool WaitUpTextContains(std::uint32_t Duration, std::uint32_t Step, const std::vector<std::string>& UpTexts);
69 
70  bool IsTileOn(const Tile& T);
71  bool ClickTile(const Tile& T);
72 
73  bool WalkPath(const std::vector<Tile>& Path, std::int32_t Distance);
74  bool WalkPath(const std::vector<Tile>& Path, std::int32_t Distance, std::function<bool()> Func);
75 
76  std::vector<Box> GetBlockingWidgetBoxes();
77 }
78 
79 #endif // MAINSCREEN_HPP_INCLUDED
Definition: Tile.hpp:8
A namespace containing various functions related to the Mainscreen.
Definition: Mainscreen.hpp:16
bool WaitIsUpText(std::uint32_t Duration, std::uint32_t Step, const std::string &UpText)
bool UpTextContains(const std::string &UpText)
Mainscreen::SCREEN_STATE GetState()
bool IsAnimating()
Returns true if the player is animating.
bool IsMoving()
Returns true if the player is moving.
Mainscreen::CROSSHAIR_STATE GetCrosshairState()
bool WalkPath(const std::vector< Tile > &Path, std::int32_t Distance)
bool IsLoggedIn()
Returns true if the Mainscreen SCREEN_STATE is PLAYING, LOADING, or HOPPING.
bool WaitUpTextContains(std::uint32_t Duration, std::uint32_t Step, const std::string &UpText)
std::string GetUpText()
std::vector< Box > GetBlockingWidgetBoxes()
bool ClickTile(const Tile &T)
bool IsUpText(const std::string &UpText)
bool IsTileOn(const Tile &T)