/*****
* Room
*
* is a java object that has some number of doors,
* and some number of other objects on the floor.
*
****/
class Room {
private final int NUMER_OF_THINGS = 10;
private final int NUMBER_OF_DOORS = 4;
private final int NORTH = 0;
private final int SOUTH = 1;
private final int EAST = 2;
private final int WEST = 3;
private String name;
private String description;
private String[] thingsOnFloor;
private doorsTo[] Room;
Room(String itsName){
name = itsName;
}
void setDescription(String d){
description = d;
}
}
syntax highlighted by Code2HTML, v. 0.9.1