AlpacaLibary
1.63
A closed source C++ bot for OSRS
|
A namespace containing various functions related to the Mainscreen. More...
Typedefs | |
typedef enum Mainscreen::SCREEN_STATE | SCREEN_STATE |
typedef enum Mainscreen::CROSSHAIR_STATE | CROSSHAIR_STATE |
Enumerations | |
enum | SCREEN_STATE { LOGIN_SCREEN , LOBBY_SCREEN , CONNECTING , LOADING , HOPPING , PLAYING } |
enum | CROSSHAIR_STATE { NONE , YELLOW , RED } |
Functions | |
Mainscreen::SCREEN_STATE | GetState () |
Mainscreen::CROSSHAIR_STATE | GetCrosshairState () |
bool | IsLoggedIn () |
Returns true if the Mainscreen SCREEN_STATE is PLAYING, LOADING, or HOPPING. More... | |
bool | IsMoving () |
Returns true if the player is moving. More... | |
bool | IsAnimating () |
Returns true if the player is animating. More... | |
std::string | GetUpText () |
bool | IsUpText (const std::string &UpText) |
bool | IsUpText (const std::vector< std::string > &UpTexts) |
bool | UpTextContains (const std::string &UpText) |
bool | UpTextContains (const std::vector< std::string > &UpTexts) |
bool | UpTextContains (const std::string &UpText, std::uint32_t CheckTime, std::uint32_t FailCheckTime) |
bool | UpTextContains (const std::vector< std::string > &UpTexts, std::uint32_t CheckTime, std::uint32_t FailCheckTime) |
bool | WaitIsUpText (std::uint32_t Duration, std::uint32_t Step, const std::string &UpText) |
bool | WaitUpTextContains (std::uint32_t Duration, std::uint32_t Step, const std::string &UpText) |
bool | WaitUpTextContains (std::uint32_t Duration, std::uint32_t Step, const std::vector< std::string > &UpTexts) |
bool | IsTileOn (const Tile &T) |
bool | ClickTile (const Tile &T) |
bool | WalkPath (const std::vector< Tile > &Path, std::int32_t Distance) |
bool | WalkPath (const std::vector< Tile > &Path, std::int32_t Distance, std::function< bool()> Func) |
std::vector< Box > | GetBlockingWidgetBoxes () |
A namespace containing various functions related to the Mainscreen.
typedef enum Mainscreen::CROSSHAIR_STATE Mainscreen::CROSSHAIR_STATE |
typedef enum Mainscreen::SCREEN_STATE Mainscreen::SCREEN_STATE |
Enumerator | |
---|---|
NONE | |
YELLOW | |
RED |
Definition at line 27 of file Mainscreen.hpp.
Enumerator | |
---|---|
LOGIN_SCREEN | |
LOBBY_SCREEN | |
CONNECTING | |
LOADING | |
HOPPING | |
PLAYING |
Definition at line 17 of file Mainscreen.hpp.
bool Mainscreen::ClickTile | ( | const Tile & | T | ) |
std::vector<Box> Mainscreen::GetBlockingWidgetBoxes | ( | ) |
Mainscreen::CROSSHAIR_STATE Mainscreen::GetCrosshairState | ( | ) |
Mainscreen::SCREEN_STATE Mainscreen::GetState | ( | ) |
std::string Mainscreen::GetUpText | ( | ) |
bool Mainscreen::IsAnimating | ( | ) |
Returns true if the player is animating.
P.GetAnimationID() != -1
bool Mainscreen::IsLoggedIn | ( | ) |
Returns true if the Mainscreen SCREEN_STATE is PLAYING, LOADING, or HOPPING.
bool Mainscreen::IsMoving | ( | ) |
Returns true if the player is moving.
P.GetPoseAnimationID() != P.GetSubPoseAnimationID()
bool Mainscreen::IsTileOn | ( | const Tile & | T | ) |
bool Mainscreen::IsUpText | ( | const std::string & | UpText | ) |
bool Mainscreen::IsUpText | ( | const std::vector< std::string > & | UpTexts | ) |
bool Mainscreen::UpTextContains | ( | const std::string & | UpText | ) |
bool Mainscreen::UpTextContains | ( | const std::string & | UpText, |
std::uint32_t | CheckTime, | ||
std::uint32_t | FailCheckTime | ||
) |
bool Mainscreen::UpTextContains | ( | const std::vector< std::string > & | UpTexts | ) |
bool Mainscreen::UpTextContains | ( | const std::vector< std::string > & | UpTexts, |
std::uint32_t | CheckTime, | ||
std::uint32_t | FailCheckTime | ||
) |
bool Mainscreen::WaitIsUpText | ( | std::uint32_t | Duration, |
std::uint32_t | Step, | ||
const std::string & | UpText | ||
) |
bool Mainscreen::WaitUpTextContains | ( | std::uint32_t | Duration, |
std::uint32_t | Step, | ||
const std::string & | UpText | ||
) |
bool Mainscreen::WaitUpTextContains | ( | std::uint32_t | Duration, |
std::uint32_t | Step, | ||
const std::vector< std::string > & | UpTexts | ||
) |
bool Mainscreen::WalkPath | ( | const std::vector< Tile > & | Path, |
std::int32_t | Distance | ||
) |
bool Mainscreen::WalkPath | ( | const std::vector< Tile > & | Path, |
std::int32_t | Distance, | ||
std::function< bool()> | Func | ||
) |