package clue;

public class RoomCell extends BoardCell {
	public static enum DoorDirection {UP, RIGHT, DOWN, LEFT, NONE};
	private DoorDirection doorDirection;
	private char roomInitial;

	public RoomCell(int i, int rows, int cols, String config) {
		super(i, rows, cols);
		
		// Door handling.
		doorDirection = DoorDirection.NONE;
		roomInitial = config.charAt(0);
		String roomSpec = config;
		if(roomSpec.length() > 1) { // Then we have a door.
			char door = roomSpec.charAt(1);
			if(door == 'U') doorDirection = DoorDirection.UP;
			else if(door == 'R') doorDirection = DoorDirection.RIGHT;
			else if(door == 'D') doorDirection = DoorDirection.DOWN;
			else if(door == 'L') doorDirection = DoorDirection.LEFT;
		}
	}

	public DoorDirection getDoorDirection() {
		return doorDirection;
	}

	public char getRoomInitial() {
		return roomInitial;
	}

	public boolean isRoom() {
		return true;
	}

	public boolean isDoorway() {
		if(this.doorDirection != DoorDirection.NONE) return true;
		else return false;
	}
}

@@ -209,17 +209,20 @@
  i, int 
-r
+numR
 ows, int
@@ -222,17 +222,20 @@
 ws, int 
-c
+numC
 ols, Str
@@ -263,15 +263,21 @@
 (i, 
-r
+numR
 ows, 
-c
+numC
 ols)

Change rows and cols to numRows and numCols in RoomCell.