use of com.code.server.constant.response.GameOfResult in project summer by foxsugar.
the class GameCow method sendFinalResult.
/**
* 最后结算
*/
protected void sendFinalResult() {
// 所有牌局都结束
if (room.getCurGameNumber() > room.getGameNumber()) {
List<UserOfResult> userOfResultList = this.room.getUserOfResult();
// 存储返回
GameOfResult gameOfResult = new GameOfResult();
gameOfResult.setUserList(userOfResultList);
MsgSender.sendMsg2Player("gameService", "gameFinalResult", gameOfResult, users);
RoomManager.removeRoom(room.getRoomId());
// 战绩
this.room.genRoomRecord();
RoomManager.getRobotRoom().remove(room);
}
}
Aggregations