lolautoaccept/include/lolautoaccept.h
2022-03-10 00:31:51 +01:00

47 lines
806 B
C++

#pragma once
#include "scaleableinputs.h"
#include "screen.h"
#include "matcher.h"
#include <xinputsimulator.h>
class LolAutoAccept {
private:
ScreenShot* screen;
Matcher acceptmatcher;
Matcher arrowmatcher;
Matcher banmatcher;
Matcher::Match lastacceptmatch;
XInputSimulator& sim;
ScaleableInputs inputs;
std::string prepick;
std::string ban;
std::string pick;
enum class State {
LOBBY,
PREPICK,
BAN,
PICK,
GAME
};
State state = State::LOBBY;
void checkForGame();
void checkForBan();
void performClick(uint32_t nr);
void enterSearch(const std::string& text);
void pickFirst(const std::string& search);
public:
LolAutoAccept();
void setPrePick(const std::string& prePick);
void setBan(const std::string& ban);
void setPick(const std::string& pick);
void run();
};