AlpacaLibary  1.63
A closed source C++ bot for OSRS
Login.hpp
Go to the documentation of this file.
1 #ifndef LOGIN_HPP_INCLUDED
2 #define LOGIN_HPP_INCLUDED
3 
4 #include "../../Core/Types/Box.hpp"
5 #include "../../Core/Classes/World.hpp"
6 
7 #include <cstdint>
8 #include <string>
9 #include <vector>
10 
11 namespace Login
12 {
13  typedef enum LOGIN_SCREEN_STATE
14  {
36  LOGGED_IN
38 
40 
41  bool LoginPlayer(bool SwitchToProfileWorld = true);
43 
47 
48  bool SelectWorld();
49  bool SelectWorld(const Internal::World& World);
50  bool SelectWorld(std::int32_t WorldID);
51 
55  std::int32_t GetScreenX();
59  std::int32_t GetWindowX();
60 
65  std::int32_t GetCaretState();
66 
71  std::vector<std::string> GetLoginMessages();
72 
77  std::vector<Box> GetButtonBoxes();
78 
79  bool WaitLoginScreenState(std::uint32_t Duration, std::uint32_t Step, Login::LOGIN_SCREEN_STATE State, bool Result = true);
80 
81 }
82 
83 #endif // LOGIN_HPP_INCLUDED
Definition: Login.hpp:12
bool OpenWorldSelect()
bool SelectWorld()
std::int32_t GetCaretState()
bool CloseWorldSelect()
std::int32_t GetWindowX()
LOGIN_SCREEN_STATE
Definition: Login.hpp:14
@ INVALID_CREDENTIALS
Definition: Login.hpp:18
@ ACCOUNT_DISABLED
Definition: Login.hpp:26
@ CONNECTING
Definition: Login.hpp:33
@ FORGOTTEN_PASSWORD
Definition: Login.hpp:20
@ LOBBY_SCREEN
Definition: Login.hpp:35
@ TOTAL_SKILL_REQUIRED
Definition: Login.hpp:28
@ ENTER_CREDENTIALS
Definition: Login.hpp:17
@ AUTHENTICATOR
Definition: Login.hpp:19
@ PVP_WORLD
Definition: Login.hpp:16
@ LOADING
Definition: Login.hpp:34
@ DISCONNECTED
Definition: Login.hpp:29
@ LOGGED_IN
Definition: Login.hpp:36
@ ERROR_CONNECTING
Definition: Login.hpp:30
@ WORLD_SELECT
Definition: Login.hpp:25
@ MEMBERS_AREA
Definition: Login.hpp:23
@ MEMBERS_REQUIRED
Definition: Login.hpp:24
@ RUNESCAPE_UPDATED
Definition: Login.hpp:21
@ TOO_MANY_ATTEMPTS
Definition: Login.hpp:32
@ ACCOUNT_LOGGED_IN
Definition: Login.hpp:27
@ ACCOUNT_LOCKED
Definition: Login.hpp:22
@ WELCOME_SCREEN
Definition: Login.hpp:15
@ CONNECTION_TIMED_OUT
Definition: Login.hpp:31
LOGIN_SCREEN_STATE GetLoginScreenState()
std::int32_t GetScreenX()
bool WaitLoginScreenState(std::uint32_t Duration, std::uint32_t Step, Login::LOGIN_SCREEN_STATE State, bool Result=true)
bool LoginPlayer(bool SwitchToProfileWorld=true)
std::vector< Box > GetButtonBoxes()
std::vector< std::string > GetLoginMessages()
bool IsWorldSelectOpen()
bool EnterCredentials()