星小夜的登录器  v1.0
信号 | Public 成员函数 | Public 属性 | Protected 成员函数 | 所有成员列表
Spt类 参考

spt徽章相关脚本-多线程类 脚本相关的配置 更多...

#include <form.h>

类 Spt 继承关系图:
Inheritance graph
[图例]
Spt 的协作图:
Collaboration graph
[图例]

信号

void done ()
 

Public 成员函数

 Spt (QObject *parent=0)
 

Public 属性

bool status
 
int now
 
Reppscript_repp
 

Protected 成员函数

void run ()
 spt徽章脚本-线程启动函数 更多...
 

详细描述

spt徽章相关脚本-多线程类 脚本相关的配置

在文件 form.h177 行定义.

构造及析构函数说明

◆ Spt()

Spt::Spt ( QObject *  parent = 0)
inline

在文件 form.h185 行定义.

186  : QThread(parent)
187  {
188  status=false;
189  script_repp=NULL;
190  }

成员函数说明

◆ done

void Spt::done ( )
signal

◆ run()

void Spt::run ( )
protected

spt徽章脚本-线程启动函数

返回

在文件 form.cpp894 行定义.

894  {
895  QVariant x,y;
896  while(status==true){
897  bool replenishpp=false;
898  if(dm.FindPic(0,0,1000,600,"sptrespd.bmp|spt-jlbl.bmp","000000",0.9,0,x,y)!=-1){
899  dm.MoveTo(420,116);
900  dm.LeftClick();
901  }
902  xy_autofight();
903  if(dm.FindColorE( 13, 440, 76, 462, "93c1ca-000000", 1, 0)!="-1|-1" || dm.FindPic(14, 327, 971, 570, "0.bmp","000000",0.8,0,x,y)!=-1){
904  replenishpp=true;
905  if(script_repp==NULL)
906  script_repp=new Repp(this);
907  script_repp->start();
908  }
909  if(replenishpp==false){
910  if(dm.FindColor(18,476,89,493,"fffad4-000000",1,0,x,y)!=0){
911  dm.MoveTo(40,506);
912  dm.LeftClick();
913  }
914  }
915  Delay(1000);
916 
917  }
918 }
函数调用图:

类成员变量说明

◆ now

int Spt::now

在文件 form.h183 行定义.

◆ script_repp

Repp* Spt::script_repp

在文件 form.h184 行定义.

◆ status

bool Spt::status

在文件 form.h182 行定义.


该类的文档由以下文件生成:
Dm::Idmsoft::FindPic
int FindPic(int x1, int y1, int x2, int y2, const QString &pic_name, const QString &delta_color, double sim, int dir, QVariant &x, QVariant &y)
Definition: dm.h:8311
Delay
void Delay(int time)
延迟线程(非阻塞)
Definition: xy.cpp:217
Dm::Idmsoft::FindColorE
QString FindColorE(int x1, int y1, int x2, int y2, const QString &color, double sim, int dir)
Definition: dm.h:8183
Repp
补pp-多线程类 对战中0pp时启动此线程可以自动补pp,(bug)如果网速过慢可能点不到药
Definition: form.h:47
Spt::script_repp
Repp * script_repp
Definition: form.h:184
Dm::Idmsoft::FindColor
int FindColor(int x1, int y1, int x2, int y2, const QString &color, double sim, int dir, QVariant &x, QVariant &y)
Definition: dm.h:8175
Dm::Idmsoft::MoveTo
int MoveTo(int x, int y)
Definition: dm.h:9423
xy_autofight
void xy_autofight()
自动克制系出战(战斗中)
Definition: xy.cpp:73
dm
Dm::Idmsoft dm
大漠插件相关的对象(唯一)
Definition: ext.cpp:15
Dm::Idmsoft::LeftClick
int LeftClick()
Definition: dm.h:9303
Spt::status
bool status
Definition: form.h:182