Search in sources :

Example 6 with Room

use of com.code.server.game.room.Room in project summer by foxsugar.

the class RoomManager method removeRoomFromMap.

public static void removeRoomFromMap(Room room) {
    List<Room> list = notFullGoldRoom.get(room.getGoldRoomType());
    ArrayList<Room> templist = new ArrayList<>();
    templist.addAll(list);
    if (list != null) {
        for (Room m : list) {
            if (m.getRoomId().equals(room.getRoomId())) {
                templist.remove(m);
            }
        }
    }
    notFullGoldRoom.put(room.getGoldRoomType(), templist);
}
Also used : ArrayList(java.util.ArrayList) Room(com.code.server.game.room.Room) IfaceRoom(com.code.server.game.room.IfaceRoom)

Aggregations

Room (com.code.server.game.room.Room)6 IfaceRoom (com.code.server.game.room.IfaceRoom)5 ArrayList (java.util.ArrayList)4 ResponseVo (com.code.server.constant.response.ResponseVo)1 UserOfRoom (com.code.server.constant.response.UserOfRoom)1 ServerConfig (com.code.server.game.poker.config.ServerConfig)1 IdWorker (com.code.server.util.IdWorker)1