-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasegamethread.h
More file actions
43 lines (40 loc) · 1 KB
/
basegamethread.h
File metadata and controls
43 lines (40 loc) · 1 KB
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
#ifndef BASEGAMETHREAD_H
#define BASEGAMETHREAD_H
#include <QObject>
#include <QPointer>
#include "applicationcontrol.h"
#include "easytemplate.h"
#include "gamebehavioranalysis.h"
#include "player.h"
#include "screencapturewin.h"
class BaseGameThread : public QObject
{
Q_OBJECT
public:
explicit BaseGameThread(QObject *parent=nullptr)
:QObject(parent)
{}
public slots:
virtual void startWorkInAThread() = 0;
};
class DnfThread : public BaseGameThread
{
Q_OBJECT
public:
explicit DnfThread(QObject *parent=nullptr);
public slots:
virtual void startWorkInAThread();
void timeTask();
private slots:
void getPhotos(const QString path);
private:
QPointer<ApplicationControl> application_;
QPointer<Player> player_;
QPointer<GameBehaviorAnalysis> behaviorAnalysis_;
QPointer<ScreenCaptureWin> screenCaptureWin_;
EasyTemplate picture_;
signals:
void GetPhotosPath(const QString path);
void SendMessageBox(const QString path);
};
#endif // BASEGAMETHREAD_H