AlpacaLibrary/Include/Game/Interfaces/Mainscreen.hpp

53 lines
1.3 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
* @{ */
2018-12-27 18:17:09 +00:00
namespace Mainscreen
2017-12-25 23:49:48 +00:00
{
2018-12-27 18:17:09 +00:00
typedef enum SCREEN_STATE
{
LOGIN_SCREEN,
LOBBY_SCREEN,
CONNECTING,
LOADING,
HOPPING,
PLAYING
} SCREEN_STATE;
typedef enum CROSSHAIR_STATE
{
NONE,
YELLOW,
RED
} CROSSHAIR_STATE;
Mainscreen::SCREEN_STATE GetState();
Mainscreen::CROSSHAIR_STATE GetCrosshairState();
bool IsLoggedIn();
bool IsMoving();
bool IsAnimating();
std::string GetUpText();
bool UpTextContains(const std::string& UpText);
bool UpTextContains(const std::vector<std::string>& UpTexts);
bool IsUpText(const std::string& UpText);
bool IsUpText(const std::vector<std::string>& UpTexts);
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 ClickTile(const Tile& T);
2018-12-31 21:52:58 +00:00
}
2017-12-25 23:49:48 +00:00
/** @} */
#endif // MAINSCREEN_HPP_INCLUDED