class Dungeon { ... // Previous code here
public void nextRoom(){
this.getCurrentRoom().monsters[0] = new Monster();
this.current_room = RandomFactory.randomLocation(
this.rooms.length, this.rooms[0].length);
this.getCurrentRoom().monsters[0] = this.player;
}
public Room getCurrentRoom(){
return this.rooms[this.current_room.x][this.current_room.y];
}
public void printCurrentRoom(){
new RoomWrapper(this.getCurrentRoom()).print();
}
}