diff --git a/src/main/java/com/comandante/creeper/server/command/admin/BuildCommand.java b/src/main/java/com/comandante/creeper/server/command/admin/BuildCommand.java index bba15075eea2d6dd83b1ff42954c6cebf24ea1b5..5e72704623bb02dd92e3b88dd493350c1c17324c 100644 --- a/src/main/java/com/comandante/creeper/server/command/admin/BuildCommand.java +++ b/src/main/java/com/comandante/creeper/server/command/admin/BuildCommand.java @@ -5,9 +5,15 @@ import com.comandante.creeper.player.Player; import com.comandante.creeper.server.ChannelUtils; import com.comandante.creeper.server.CreeperSession; import com.comandante.creeper.server.command.Command; +import com.comandante.creeper.world.Area; +import com.comandante.creeper.world.BasicRoom; +import com.comandante.creeper.world.BasicRoomBuilder; +import com.comandante.creeper.world.Coords; import com.comandante.creeper.world.MapMatrix; import com.comandante.creeper.world.MapsManager; import com.comandante.creeper.world.Room; +import com.comandante.creeper.world.RoomManager; +import com.google.common.base.Optional; import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.MessageEvent; @@ -36,6 +42,7 @@ public class BuildCommand extends Command { ChannelUtils utils = gameManager.getChannelUtils(); MapsManager mapsManager = gameManager.getMapsManager(); MapMatrix mapMatrix = mapsManager.getFloorMatrixMaps().get(currentRoom.getFloorId()); + Coords roomCoords = mapMatrix.getCoords(currentRoom.getRoomId()); List<String> originalMessageParts = getOriginalMessageParts(e); if (originalMessageParts.size() == 1) { utils.write(playerId, "You must specify a direction in which to build."); @@ -44,24 +51,102 @@ public class BuildCommand extends Command { String desiredBuildDirection = originalMessageParts.get(1); if (desiredBuildDirection.equalsIgnoreCase("n") | desiredBuildDirection.equalsIgnoreCase("north")) { if (!currentRoom.getNorthId().isPresent() && mapMatrix.getNorth(currentRoom.getRoomId()) == 0) { - utils.write(playerId, "Would be able to create."); + Coords coords = new Coords(roomCoords.row - 1, roomCoords.column); + if (coords.getRow() < 0) { + mapMatrix.addRow(true); + coords = new Coords(0, roomCoords.column); + } + buildBasicRoom(currentRoom, coords, mapMatrix); + utils.write(playerId, "Room created."); + return; } else { utils.write(playerId, "Error! There is already a room to the North."); } - } else if (desiredBuildDirection.equalsIgnoreCase("s") | desiredBuildDirection.equalsIgnoreCase("south")) { - + if (!currentRoom.getSouthId().isPresent() && mapMatrix.getSouth(currentRoom.getRoomId()) == 0) { + Coords coords = new Coords(roomCoords.row + 1, roomCoords.column); + if (coords.getRow() >= mapMatrix.getMaxRow()) { + mapMatrix.addRow(false); + } + buildBasicRoom(currentRoom, coords, mapMatrix); + utils.write(playerId, "Room created."); + return; + } else { + utils.write(playerId, "Error! There is already a room to the South."); + } } else if (desiredBuildDirection.equalsIgnoreCase("e") | desiredBuildDirection.equalsIgnoreCase("east")) { - + if (!currentRoom.getEastId().isPresent() && mapMatrix.getEast(currentRoom.getRoomId()) == 0) { + buildBasicRoom(currentRoom, new Coords(roomCoords.row, roomCoords.column + 1), mapMatrix); + utils.write(playerId, "Room created."); + return; + } else { + utils.write(playerId, "Error! There is already a room to the East."); + } } else if (desiredBuildDirection.equalsIgnoreCase("w") | desiredBuildDirection.equalsIgnoreCase("west")) { - + if (!currentRoom.getWestId().isPresent() && mapMatrix.getWest(currentRoom.getRoomId()) == 0) { + buildBasicRoom(currentRoom, new Coords(roomCoords.row, roomCoords.column - 1), mapMatrix); + utils.write(playerId, "Room created."); + return; + } else { + utils.write(playerId, "Error! There is already a room to the West."); + } } } finally { super.messageReceived(ctx, e); } } - private void buildBasicRoom() { + private void buildBasicRoom(Room currentRoom, Coords newCords, MapMatrix mapMatrix) { + Integer newRroomId = findRoomId(); + mapMatrix.setCoordsValue(newCords, newRroomId); + BasicRoomBuilder basicRoomBuilder = new BasicRoomBuilder(); + basicRoomBuilder.addArea(Area.DEFAULT); + basicRoomBuilder.setRoomId(newRroomId); + basicRoomBuilder.setRoomDescription("Newly created room. Set a new description with the desc command."); + basicRoomBuilder.setRoomTitle("Default Title, change with title command"); + basicRoomBuilder.setFloorId(currentRoom.getFloorId()); + BasicRoom basicRoom = basicRoomBuilder.createBasicRoom(); + getGameManager().getRoomManager().addRoom(basicRoom); + getGameManager().getEntityManager().addEntity(basicRoom); + rebuildExits(basicRoom, mapMatrix); + rebuildExits(currentRoom, mapMatrix); + RoomManager roomManager = getGameManager().getRoomManager(); + if (basicRoom.getNorthId().isPresent()) { + rebuildExits(roomManager.getRoom(basicRoom.getNorthId().get()), mapMatrix); + } + if (basicRoom.getSouthId().isPresent()) { + rebuildExits(roomManager.getRoom(basicRoom.getSouthId().get()), mapMatrix); + } + if (basicRoom.getEastId().isPresent()) { + rebuildExits(roomManager.getRoom(basicRoom.getEastId().get()), mapMatrix); + } + if (basicRoom.getWestId().isPresent()) { + rebuildExits(roomManager.getRoom(basicRoom.getWestId().get()), mapMatrix); + } + getGameManager().getMapsManager().generateAllMaps(9, 9); + } + private void rebuildExits(Room room, MapMatrix mapMatrix) { + if (mapMatrix.getNorth(room.getRoomId()) > 0) { + room.setNorthId(Optional.of(mapMatrix.getNorth(room.getRoomId()))); + } + if (mapMatrix.getSouth(room.getRoomId()) > 0) { + room.setSouthId(Optional.of(mapMatrix.getSouth(room.getRoomId()))); + } + if (mapMatrix.getEast(room.getRoomId()) > 0) { + room.setEastId(Optional.of(mapMatrix.getEast(room.getRoomId()))); + } + if (mapMatrix.getWest(room.getRoomId()) > 0) { + room.setWestId(Optional.of(mapMatrix.getWest(room.getRoomId()))); + } + } + + private Integer findRoomId() { + for (int i = 1; i < Integer.MAX_VALUE; i++) { + if (!getGameManager().getRoomManager().doesRoomIdExist(i)) { + return i; + } + } + return 0; } } diff --git a/src/main/java/com/comandante/creeper/world/MapMatrix.java b/src/main/java/com/comandante/creeper/world/MapMatrix.java index 6f37e4ca5906333edd96410bfba40f5b8a0fa7d0..82a1bc3fee8c3352b27d2f8638e3ffd64c340ae4 100644 --- a/src/main/java/com/comandante/creeper/world/MapMatrix.java +++ b/src/main/java/com/comandante/creeper/world/MapMatrix.java @@ -13,7 +13,7 @@ import java.util.List; public class MapMatrix { private final List<List<Integer>> matrix; - private final Coords max; + private Coords max; public MapMatrix(List<List<Integer>> matrix) { this.matrix = matrix; @@ -28,8 +28,12 @@ public class MapMatrix { return max.column; } + public void setMax(Coords max) { + this.max = max; + } + public java.util.Iterator<List<Integer>> getRows() { - return matrix.iterator(); + return matrix.iterator(); } public Coords getCoords(Integer roomId) { @@ -122,7 +126,7 @@ public class MapMatrix { return destinationMatrix; } - private Predicate<Integer> removeZeros(){ + private Predicate<Integer> removeZeros() { return new Predicate<Integer>() { @Override public boolean apply(Integer integer) { @@ -136,8 +140,8 @@ public class MapMatrix { public String getCsv() { StringBuilder sb = new StringBuilder(); - for (List<Integer> list: matrix) { - for (Integer roomId: list) { + for (List<Integer> list : matrix) { + for (Integer roomId : list) { if (!roomId.equals(0)) { sb.append(roomId); } @@ -193,4 +197,17 @@ public class MapMatrix { } return sb.toString(); } + + public void addRow(boolean startOfArray) { + ArrayList<Integer> newRow = Lists.<Integer>newArrayList(); + for (int i = 0; i < matrix.get(0).size(); i++) { + newRow.add(0); + } + if (startOfArray) { + matrix.add(0, newRow); + } else { + matrix.add(newRow); + } + setMax(new Coords(matrix.size(), matrix.get(0).size())); + } } diff --git a/src/main/java/com/comandante/creeper/world/Room.java b/src/main/java/com/comandante/creeper/world/Room.java index 0060dac1824f3ae967f2d1702f609f0b4cf7c53e..78a8553ad5f8db695febc7b465effc1860dd8a30 100644 --- a/src/main/java/com/comandante/creeper/world/Room.java +++ b/src/main/java/com/comandante/creeper/world/Room.java @@ -24,12 +24,12 @@ public abstract class Room extends CreeperEntity { private String roomTitle; private final Integer floorId; - private final Optional<Integer> northId; - private final Optional<Integer> westId; - private final Optional<Integer> eastId; - private final Optional<Integer> southId; - private final Optional<Integer> downId; - private final Optional<Integer> upId; + private Optional<Integer> northId; + private Optional<Integer> westId; + private Optional<Integer> eastId; + private Optional<Integer> southId; + private Optional<Integer> downId; + private Optional<Integer> upId; private String roomDescription; private final Set<String> presentPlayerIds = Sets.<String>newConcurrentHashSet(); private final Set<String> afkPlayerIds = Sets.<String>newConcurrentHashSet(); @@ -69,6 +69,29 @@ public abstract class Room extends CreeperEntity { return roomTags; } + public void setNorthId(Optional<Integer> northId) { + this.northId = northId; + } + + public void setWestId(Optional<Integer> westId) { + this.westId = westId; + } + + public void setEastId(Optional<Integer> eastId) { + this.eastId = eastId; + } + + public void setSouthId(Optional<Integer> southId) { + this.southId = southId; + } + + public void setDownId(Optional<Integer> downId) { + this.downId = downId; + } + + public void setUpId(Optional<Integer> upId) { + this.upId = upId; + } public void addTag(String tag) { roomTags.add(tag); diff --git a/src/main/java/com/comandante/creeper/world/RoomManager.java b/src/main/java/com/comandante/creeper/world/RoomManager.java index 0f8b640180adb7f0b3cebae59efb87dae67c70ea..4acdc970fa34c816e30b20376b951cd73659c6ed 100644 --- a/src/main/java/com/comandante/creeper/world/RoomManager.java +++ b/src/main/java/com/comandante/creeper/world/RoomManager.java @@ -106,4 +106,16 @@ public class RoomManager { return rooms; } + public boolean doesRoomIdExist(Integer roomId) { + Iterator<Map.Entry<Integer, Room>> rooms1 = getRooms(); + Set<Integer> roomIds = Sets.newHashSet(); + while (rooms1.hasNext()) { + Map.Entry<Integer, Room> next = rooms1.next(); + if (next.getKey().equals(roomId)) { + return true; + } + } + return false; + } + } diff --git a/world/main_floor.json b/world/main_floor.json index 7de9b6d6d63bf8a2bd16a28d0ab7e8bcb3afa119..190f7fee13b6a5de751113871522be6d0ef94bf3 100644 --- a/world/main_floor.json +++ b/world/main_floor.json @@ -1,10 +1,10 @@ { "name": "main", "id": 0, - "rawMatrixCsv": ",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,46,45,44,43,42,41,40,39,38,37,36,35,34,33,,,\n,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,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,,,,,,,,,,,,,,,,,,,,,,57,58,59,60,61,62,,5,,,,,,,,,,,,\n,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,63,,69,,,,,,,,,,,,\n,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,64,65,66,,,,,,,,,,,,\n,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,70,,,,,,,,,,,,\n", "roomModels": [ { - "roomId": 42, + "roomId": 54, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -14,7 +14,7 @@ ] }, { - "roomId": 4, + "roomId": 53, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -24,7 +24,7 @@ ] }, { - "roomId": 63, + "roomId": 14, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -34,7 +34,7 @@ ] }, { - "roomId": 19, + "roomId": 49, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -44,7 +44,7 @@ ] }, { - "roomId": 41, + "roomId": 21, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -54,7 +54,7 @@ ] }, { - "roomId": 25, + "roomId": 27, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -64,7 +64,7 @@ ] }, { - "roomId": 3, + "roomId": 65, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -74,7 +74,27 @@ ] }, { - "roomId": 1, + "roomId": 70, + "floorId": 0, + "roomDescription": "Newly created room. Set a new description with the desc command.", + "roomTitle": "Default Title, change with title command", + "roomTags": [], + "areaNames": [ + "default" + ] + }, + { + "roomId": 68, + "floorId": 0, + "roomDescription": "Newly created room. Set a new description with the desc command.", + "roomTitle": "Default Title, change with title command", + "roomTags": [], + "areaNames": [ + "newbie_zone" + ] + }, + { + "roomId": 8, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -84,7 +104,7 @@ ] }, { - "roomId": 35, + "roomId": 26, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -94,7 +114,7 @@ ] }, { - "roomId": 14, + "roomId": 4, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -104,7 +124,7 @@ ] }, { - "roomId": 49, + "roomId": 56, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -114,7 +134,17 @@ ] }, { - "roomId": 15, + "roomId": 67, + "floorId": 0, + "roomDescription": "Newly created room. Set a new description with the desc command.", + "roomTitle": "Default Title, change with title command", + "roomTags": [], + "areaNames": [ + "newbie_zone" + ] + }, + { + "roomId": 31, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -124,7 +154,7 @@ ] }, { - "roomId": 26, + "roomId": 57, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -134,7 +164,7 @@ ] }, { - "roomId": 52, + "roomId": 30, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -144,7 +174,7 @@ ] }, { - "roomId": 62, + "roomId": 10, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -154,7 +184,7 @@ ] }, { - "roomId": 27, + "roomId": 62, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -164,7 +194,7 @@ ] }, { - "roomId": 47, + "roomId": 61, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -174,7 +204,7 @@ ] }, { - "roomId": 39, + "roomId": 6, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -184,7 +214,7 @@ ] }, { - "roomId": 17, + "roomId": 60, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -204,7 +234,7 @@ ] }, { - "roomId": 12, + "roomId": 59, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -214,7 +244,7 @@ ] }, { - "roomId": 5, + "roomId": 46, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -224,7 +254,7 @@ ] }, { - "roomId": 60, + "roomId": 51, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -234,7 +264,7 @@ ] }, { - "roomId": 22, + "roomId": 44, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -244,7 +274,7 @@ ] }, { - "roomId": 10, + "roomId": 41, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -254,7 +284,7 @@ ] }, { - "roomId": 20, + "roomId": 12, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -264,7 +294,7 @@ ] }, { - "roomId": 38, + "roomId": 45, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -274,7 +304,7 @@ ] }, { - "roomId": 51, + "roomId": 23, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -284,7 +314,7 @@ ] }, { - "roomId": 9, + "roomId": 34, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -294,7 +324,7 @@ ] }, { - "roomId": 44, + "roomId": 13, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -304,7 +334,7 @@ ] }, { - "roomId": 64, + "roomId": 15, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -314,7 +344,7 @@ ] }, { - "roomId": 53, + "roomId": 28, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -324,7 +354,7 @@ ] }, { - "roomId": 2, + "roomId": 47, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -334,7 +364,7 @@ ] }, { - "roomId": 57, + "roomId": 38, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -344,7 +374,7 @@ ] }, { - "roomId": 30, + "roomId": 2, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -354,7 +384,7 @@ ] }, { - "roomId": 16, + "roomId": 5, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -364,7 +394,7 @@ ] }, { - "roomId": 65, + "roomId": 20, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -374,7 +404,7 @@ ] }, { - "roomId": 13, + "roomId": 35, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -384,7 +414,7 @@ ] }, { - "roomId": 24, + "roomId": 17, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -394,7 +424,7 @@ ] }, { - "roomId": 31, + "roomId": 32, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -404,7 +434,7 @@ ] }, { - "roomId": 45, + "roomId": 3, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -414,7 +444,7 @@ ] }, { - "roomId": 59, + "roomId": 29, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -424,7 +454,7 @@ ] }, { - "roomId": 34, + "roomId": 58, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -434,7 +464,7 @@ ] }, { - "roomId": 46, + "roomId": 42, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -444,7 +474,7 @@ ] }, { - "roomId": 7, + "roomId": 55, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -454,7 +484,7 @@ ] }, { - "roomId": 56, + "roomId": 18, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -464,7 +494,7 @@ ] }, { - "roomId": 50, + "roomId": 48, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -474,7 +504,7 @@ ] }, { - "roomId": 55, + "roomId": 40, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -484,7 +514,7 @@ ] }, { - "roomId": 54, + "roomId": 43, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -494,7 +524,7 @@ ] }, { - "roomId": 58, + "roomId": 39, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -504,7 +534,7 @@ ] }, { - "roomId": 28, + "roomId": 9, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -514,7 +544,7 @@ ] }, { - "roomId": 6, + "roomId": 63, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -524,7 +554,7 @@ ] }, { - "roomId": 18, + "roomId": 19, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -534,7 +564,17 @@ ] }, { - "roomId": 43, + "roomId": 69, + "floorId": 0, + "roomDescription": "Newly created room. Set a new description with the desc command.", + "roomTitle": "Default Title, change with title command", + "roomTags": [], + "areaNames": [ + "default" + ] + }, + { + "roomId": 1, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -544,7 +584,7 @@ ] }, { - "roomId": 61, + "roomId": 36, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -554,7 +594,7 @@ ] }, { - "roomId": 36, + "roomId": 16, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -564,7 +604,7 @@ ] }, { - "roomId": 40, + "roomId": 50, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -574,7 +614,7 @@ ] }, { - "roomId": 33, + "roomId": 52, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -584,7 +624,7 @@ ] }, { - "roomId": 32, + "roomId": 37, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -594,7 +634,7 @@ ] }, { - "roomId": 8, + "roomId": 64, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -604,7 +644,7 @@ ] }, { - "roomId": 37, + "roomId": 22, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -614,7 +654,7 @@ ] }, { - "roomId": 23, + "roomId": 25, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -624,7 +664,7 @@ ] }, { - "roomId": 48, + "roomId": 24, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -634,7 +674,7 @@ ] }, { - "roomId": 21, + "roomId": 33, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -644,7 +684,7 @@ ] }, { - "roomId": 11, + "roomId": 7, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.", @@ -654,7 +694,7 @@ ] }, { - "roomId": 29, + "roomId": 11, "floorId": 0, "roomDescription": "This is a blank Description.\nWords should go here, ideally.", "roomTitle": "This is a blank title.",