* Carga el conjunto de mapas del fichero "cjtmap.txt".
*/
public void loadCjtMap(){
String nameRoom, nameElement;
int[][] doors, windows;
AuxiliarElement auxiliar;
Stack<AuxiliarElement> elements;
int idRoom, dimRoomX, dimRoomY, posX, posY, dimAuxX, dimAuxY, idAux, flagAux, size, sizeAux, doorSize, windowSize;
File file;
FileReader fr;
BufferedReader reader;
try {
file = new File("cjtmap.txt");
if(file.length() > 0){
fr = new FileReader(file);
reader = new BufferedReader(fr);
String linea;
linea = reader.readLine();
size = Integer.parseInt(linea);
if(size > 0){
reader.readLine();
reader.readLine();
reader.readLine();
for(int i = 0; i < size; ++i){
elements = new Stack();
linea = reader.readLine();
idRoom = Integer.parseInt(linea);
linea = reader.readLine();
dimRoomX = Integer.parseInt(linea);
linea = reader.readLine();
dimRoomY = Integer.parseInt(linea);
nameRoom = reader.readLine();
linea = reader.readLine();
sizeAux = Integer.parseInt(linea);
reader.readLine();
for(int j = 0; j < sizeAux; ++j){
linea = reader.readLine();
idAux = Integer.parseInt(linea);
linea = reader.readLine();
flagAux = Integer.parseInt(linea);
nameElement = reader.readLine();
linea = reader.readLine();
dimAuxX = Integer.parseInt(linea);
linea = reader.readLine();
dimAuxY = Integer.parseInt(linea);
linea = reader.readLine();
posX = Integer.parseInt(linea);
linea = reader.readLine();
posY = Integer.parseInt(linea);
auxiliar = new AuxiliarElement( posX, posY, dimAuxX, dimAuxY, idAux, flagAux, nameElement);
elements.push(auxiliar);
reader.readLine();
}
reader.readLine();