/** * The constructor for GameSetup is where you load in files and set up * variables that will be used for the rest of the game. */ public GameSetup() { // Load in the map. Vector vect=null; try { ObjectInputStream ois=new ObjectInputStream(new FileInputStream("MRevMap.bin")); vect=(Vector)ois.readObject(); firstScreen=(Screen)vect.elementAt(0); } catch(FileNotFoundException e) { e.printStackTrace(); } catch(IOException e) { e.printStackTrace(); } catch(ClassNotFoundException e) { e.printStackTrace(); } // Setup basic variables. localPlayer=new MRevPlayer(new Location(firstScreen,10,10)); firstScreen.addEntity(localPlayer); priorityQueue=new ListBasedPriorityQueue(); // Set up the original queue. if(vect!=null) { for(int i=0; i