-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththreads.h
executable file
·66 lines (58 loc) · 1.59 KB
/
threads.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef SUFOTHREADS_H
#define SUFOTHREADS_H
#include <wx/thread.h>
//#include <X11/Xlib.h>
#include "bot.h"
// MousePosition thread class
class MousePosition : public wxThread
{
public:
MousePosition(wxTextCtrl*, wxTextCtrl*, wxCheckBox*);
private:
void* Entry(); // the entry point to the thread
void OnExit();
wxString Mx, My;
wxTextCtrl* txtX;
wxTextCtrl* txtY;
wxCheckBox* getMousePoscheck;
};
// Bot thread class
class BotThread : public wxThread
{
public:
BotThread(wxString, Display*, Window, int, int, wxButton*, wxButton*, wxTextCtrl*, bool, int*, bool, wxString);
private:
void* Entry(); // the entry point to the thread
void OnExit();
wxString trajetPath;
Display* display;
Window gameWindow;
int gameWidth, gameHeight;
wxButton* lancerBtn;
wxButton* stopBtn;
wxTextCtrl* txtConsole;
bool keepMouse;
bool isConnected;
bool forcedStop;
int* repriseIndex;
bool repeterTrajet;
wxString optionsCoMeFile;
};
// Simuler Combat Thread
class SimulerCombatThread : public wxThread
{
public:
SimulerCombatThread(wxButton*, int, int, Display*, Window, Window, wxString, wxTextCtrl*);
private:
void* Entry(); // the entry point to the thread
void OnExit();
wxButton* simulerCombatBtn;
int gameWidth;
int gameHeight;
Display* display;
Window gameWindow;
Window root;
wxString optionsCoMeFile;
wxTextCtrl* txtConsole;
};
#endif