AlpacaLibrary/Include/Game/Interfaces/Mainscreen.hpp

54 lines
1.6 KiB
C++
Raw Normal View History

2017-12-25 23:49:48 +00:00
#ifndef MAINSCREEN_HPP_INCLUDED
#define MAINSCREEN_HPP_INCLUDED
#include "../../Core/Types/Box.hpp"
2018-10-04 07:21:36 +00:00
#include "../../Core/Types/Tile.hpp"
2017-12-25 23:49:48 +00:00
#include "../../Core/Classes/Character.hpp"
#include <cstdint>
#include <string>
#include <vector>
/** @addtogroup Interfaces
* @{ */
class Mainscreen
{
public:
typedef enum SCREEN_STATE
{
LOGIN_SCREEN,
LOBBY_SCREEN,
CONNECTING,
LOADING,
HOPPING,
PLAYING
} SCREEN_STATE;
2018-05-10 01:08:38 +00:00
typedef enum CROSSHAIR_STATE
{
NONE,
YELLOW,
RED
} CROSSHAIR_STATE;
2017-12-25 23:49:48 +00:00
static Mainscreen::SCREEN_STATE GetState();
2018-05-10 01:08:38 +00:00
static Mainscreen::CROSSHAIR_STATE GetCrosshairState();
2017-12-25 23:49:48 +00:00
static bool IsLoggedIn();
2018-10-04 07:21:36 +00:00
static bool IsMoving();
2018-11-22 14:39:29 +00:00
static bool IsAnimating();
2017-12-25 23:49:48 +00:00
static std::string GetUpText();
static bool UpTextContains(const std::string& UpText);
static bool UpTextContains(const std::vector<std::string>& UpTexts);
static bool IsUpText(const std::string& UpText);
static bool IsUpText(const std::vector<std::string>& UpTexts);
static bool WaitIsUpText(std::uint32_t Duration, std::uint32_t Step, const std::string& UpText);
static bool WaitUpTextContains(std::uint32_t Duration, std::uint32_t Step, const std::string& UpText);
2018-06-28 02:22:43 +00:00
static bool WaitUpTextContains(std::uint32_t Duration, std::uint32_t Step, const std::vector<std::string>& UpTexts);
2018-10-04 07:21:36 +00:00
static bool ClickTile(const Tile& T);
2017-12-25 23:49:48 +00:00
};
/** @} */
#endif // MAINSCREEN_HPP_INCLUDED