2017-12-25 23:49:48 +00:00
|
|
|
#ifndef MAINSCREEN_HPP_INCLUDED
|
|
|
|
#define MAINSCREEN_HPP_INCLUDED
|
|
|
|
|
|
|
|
#include "../../Core/Types/Box.hpp"
|
|
|
|
#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();
|
|
|
|
static bool IsPlaying();
|
|
|
|
|
|
|
|
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-05-10 01:08:38 +00:00
|
|
|
static std::int32_t GetCameraX();
|
|
|
|
static std::int32_t GetCameraY();
|
|
|
|
static std::int32_t GetCameraZ();
|
|
|
|
static std::int32_t GetCameraPitch();
|
|
|
|
static std::int32_t GetCameraYaw();
|
2018-03-11 20:42:34 +00:00
|
|
|
|
|
|
|
static bool SetCameraPitch(std::int32_t Pitch);
|
2017-12-25 23:49:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/** @} */
|
|
|
|
|
|
|
|
#endif // MAINSCREEN_HPP_INCLUDED
|