|
@@ -29,6 +29,7 @@ public class SceneMain_Family extends BaseScene implements Scene {
|
|
private static String PathRightdoor2 = System.getProperty("user.dir") + "\\opencv\\scene\\family\\rightDoor2.png";
|
|
private static String PathRightdoor2 = System.getProperty("user.dir") + "\\opencv\\scene\\family\\rightDoor2.png";
|
|
private static String PathGoLeft = System.getProperty("user.dir") + "\\opencv\\scene\\family\\goLeft.png";
|
|
private static String PathGoLeft = System.getProperty("user.dir") + "\\opencv\\scene\\family\\goLeft.png";
|
|
private static String PathGoRight = System.getProperty("user.dir") + "\\opencv\\scene\\family\\goRight.png";
|
|
private static String PathGoRight = System.getProperty("user.dir") + "\\opencv\\scene\\family\\goRight.png";
|
|
|
|
+ private static String PathPaper = System.getProperty("user.dir") + "\\opencv\\scene\\family\\paper.png";
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void back() throws AWTException {
|
|
public void back() throws AWTException {
|
|
@@ -44,6 +45,12 @@ public class SceneMain_Family extends BaseScene implements Scene {
|
|
moveToClick(PathEnter, 0.9);
|
|
moveToClick(PathEnter, 0.9);
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (checkHas(PathPaper, 0.9)) {
|
|
|
|
+ moveToClick(PathPaper, 0.9, new Point(300, 0));
|
|
|
|
+ ThreadUtil.sleep(2000);
|
|
|
|
+ }
|
|
|
|
+
|
|
if (checkHas(PathRightdoor, 0.9)||checkHas(PathRightdoor2, 0.9)) {
|
|
if (checkHas(PathRightdoor, 0.9)||checkHas(PathRightdoor2, 0.9)) {
|
|
System.out.println("发现右边的门...");
|
|
System.out.println("发现右边的门...");
|
|
moveToClick(PathGoLeft, 0.9, new Point(0, -50));
|
|
moveToClick(PathGoLeft, 0.9, new Point(0, -50));
|