|
@@ -38,6 +38,7 @@ public class SceneMain_Glory_Match extends SceneWhitSubRecord implements Scene {
|
|
|
private static String PathOb = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\ob.png";
|
|
|
private static String PathLv = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\lv.png";
|
|
|
private static String PathNotOpen = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\notOpen.png";
|
|
|
+ private static String PathNotOpen2 = System.getProperty("user.dir") + "\\opencv\\scene\\glory\\match\\notOpen2.png";
|
|
|
private int maxTime = 99;
|
|
|
|
|
|
@Override
|
|
@@ -66,12 +67,26 @@ public class SceneMain_Glory_Match extends SceneWhitSubRecord implements Scene {
|
|
|
if (checkHas(PathCheck, AiManage.getInstance().getCheckPoint())) {
|
|
|
return true;
|
|
|
}
|
|
|
+ if (checkHas(PathNotOpen2,AiManage.getInstance().getCheckPoint())){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void think() throws AWTException {
|
|
|
int count = getRecord().getData().getCount();
|
|
|
+
|
|
|
+ ThreadUtil.sleep(2000);
|
|
|
+ if (checkHas(PathNotOpen2,AiManage.getInstance().getCheckPoint())){
|
|
|
+ System.out.println("活动未开启!");
|
|
|
+ getRecordSub().getData().setDone(true);
|
|
|
+
|
|
|
+ moveToClick(PathClose2, AiManage.getInstance().getCheckPoint());
|
|
|
+ ThreadUtil.sleep(2000);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
while (AiManage.getInstance().isRunning() && !isDone()) {
|
|
|
ThreadUtil.sleep(3000);
|
|
|
if (checkHas(PathNotOpen,AiManage.getInstance().getCheckPoint())){
|
|
@@ -80,6 +95,8 @@ public class SceneMain_Glory_Match extends SceneWhitSubRecord implements Scene {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
if (checkHas(PathStart, AiManage.getInstance().getCheckPoint())) {
|
|
|
moveToClick(PathStart, AiManage.getInstance().getCheckPoint());
|
|
|
ThreadUtil.sleep(5000);
|