|
@@ -204,9 +204,9 @@ public class GDRoom extends Room {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ if (this.time >= 60 && this.data.type != 1) {
|
|
|
+ RobotService.getInstance().joinRoom(this);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
@@ -256,35 +256,33 @@ public class GDRoom extends Room {
|
|
|
|
|
|
} else {
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ if (this.data.currentPlayer.data.isRobot) {
|
|
|
+
|
|
|
+ if (this.time >= this.data.currentPlayer.data.robotOpTime) {
|
|
|
+ Player zhuangPlayer = this.data.playerMap[this.data.zhuangPos];
|
|
|
+ if (zhuangPlayer != null && zhuangPlayer.getId().equals(this.data.currentPlayer.getId())) {
|
|
|
+
|
|
|
+ RobotService.getInstance().robotDisCard(this, this.data.currentPlayer);
|
|
|
+ this.flag = true;
|
|
|
+ this.time = 0;
|
|
|
+ break;
|
|
|
+ } else if (this.data.jieFengPlayer != null && this.data.jieFengPlayer.data.isRobot) {
|
|
|
+
|
|
|
+ RobotService.getInstance().robotDisCard(this, this.data.jieFengPlayer);
|
|
|
+ this.flag = true;
|
|
|
+ this.time = 0;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (this.data.currentPlayer != null && this.data.currentPlayer.data.isRobot) {
|
|
|
+ RobotService.getInstance().robotPass(this, this.data.currentPlayer);
|
|
|
+ this.flag = true;
|
|
|
+ this.time = 0;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
@@ -556,6 +554,8 @@ public class GDRoom extends Room {
|
|
|
this.data.result.clear();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
|
|
|
this.doSendCard();
|
|
|
|
|
@@ -1112,6 +1112,9 @@ public class GDRoom extends Room {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ this.flag = true;
|
|
|
+ this.time = 0;
|
|
|
+
|
|
|
boolean isGameOver = false;
|
|
|
|
|
|
|
|
@@ -1274,6 +1277,9 @@ public class GDRoom extends Room {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ this.flag = true;
|
|
|
+ this.time = 0;
|
|
|
+
|
|
|
|
|
|
Map<String, Object> data = this.roomToPlayBack(this.data.currentPlayer);
|
|
|
this.playBack.put(Long.toString(System.currentTimeMillis()), data);
|