|
@@ -30,7 +30,7 @@ public class SceneMain_Family_Battle extends BaseScene implements Scene {
|
|
|
|
|
|
private static String PathRightdoor = System.getProperty("user.dir") + "\\opencv\\scene\\family\\battle\\rightDoor.png";
|
|
private static String PathRightdoor = System.getProperty("user.dir") + "\\opencv\\scene\\family\\battle\\rightDoor.png";
|
|
private static String PathGoLeft = System.getProperty("user.dir") + "\\opencv\\scene\\family\\battle\\goLeft.png";
|
|
private static String PathGoLeft = System.getProperty("user.dir") + "\\opencv\\scene\\family\\battle\\goLeft.png";
|
|
-
|
|
|
|
|
|
+ private static String PathPaper = System.getProperty("user.dir") + "\\opencv\\scene\\family\\help\\paper.png";
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void back() throws AWTException {
|
|
public void back() throws AWTException {
|
|
@@ -43,18 +43,18 @@ public class SceneMain_Family_Battle extends BaseScene implements Scene {
|
|
AiManage.getInstance().updateWindow();
|
|
AiManage.getInstance().updateWindow();
|
|
ThreadUtil.sleep(2000);
|
|
ThreadUtil.sleep(2000);
|
|
if (checkHas(PathEnter, AiManage.getInstance().getCheckPoint())) {
|
|
if (checkHas(PathEnter, AiManage.getInstance().getCheckPoint())) {
|
|
- moveToClick(PathEnter, AiManage.getInstance().getCheckPoint(),new Point(80, 0));
|
|
|
|
|
|
+ moveToClick(PathEnter, AiManage.getInstance().getCheckPoint(), new Point(-150, -35));
|
|
ThreadUtil.sleep(5000);
|
|
ThreadUtil.sleep(5000);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
- if (checkHas(PathRightdoor, AiManage.getInstance().getCheckPoint())) {
|
|
|
|
- moveToClick(PathGoLeft, AiManage.getInstance().getCheckPoint(), new Point(-100, -70));
|
|
|
|
- ThreadUtil.sleep(5000);
|
|
|
|
- }else {
|
|
|
|
- moveToClick(PathGoLeft, AiManage.getInstance().getCheckPoint(), new Point(430, -70));
|
|
|
|
- ThreadUtil.sleep(5000);
|
|
|
|
|
|
+ if (checkHas(PathPaper, AiManage.getInstance().getCheckPoint())) {
|
|
|
|
+ moveToClick(PathPaper, AiManage.getInstance().getCheckPoint(), new Point(300, 0));
|
|
|
|
+ ThreadUtil.sleep(2000);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ moveToClick(PathGoLeft, AiManage.getInstance().getCheckPoint(), new Point(430, -70));
|
|
|
|
+ ThreadUtil.sleep(5000);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -78,7 +78,7 @@ public class SceneMain_Family_Battle extends BaseScene implements Scene {
|
|
}
|
|
}
|
|
//TODO ice 补充逻辑
|
|
//TODO ice 补充逻辑
|
|
getRecord().getData().setDone(true);
|
|
getRecord().getData().setDone(true);
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
//今天没有比赛
|
|
//今天没有比赛
|
|
getRecord().getData().setDone(true);
|
|
getRecord().getData().setDone(true);
|
|
}
|
|
}
|
|
@@ -86,7 +86,7 @@ public class SceneMain_Family_Battle extends BaseScene implements Scene {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public boolean isDone() {
|
|
public boolean isDone() {
|
|
- return getRecord().getData().isDone()&&hasChildDone();
|
|
|
|
|
|
+ return getRecord().getData().isDone() && hasChildDone();
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|