lolautoaccept/include/lolautoaccept.h

41 lines
639 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::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 performClick(uint32_t nr);
void enterSearch(const std::string& text);
void pickFirst(const std::string& search);
public:
LolAutoAccept();
void run();
};