Search in sources :

Example 6 with GameOfResult

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);
    }
}
Also used : UserOfResult(com.code.server.constant.response.UserOfResult) GameOfResult(com.code.server.constant.response.GameOfResult)

Aggregations

GameOfResult (com.code.server.constant.response.GameOfResult)6 UserOfResult (com.code.server.constant.response.UserOfResult)5 ResponseVo (com.code.server.constant.response.ResponseVo)3 GameResultDouDizhu (com.code.server.constant.response.GameResultDouDizhu)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1