jdalbey

CPE 305 Wall of Shame - ugly hacks

Mar 20th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1.     /**
  2.      * Sets the map type
  3.      * @param t to change map to
  4.      */
  5.     public void changeMapType(boolean t)
  6.     {
  7.         mapType = t;
  8.         output = new ArrayList<String>();
  9.         //Only console is running
  10.         if(countObservers() == 1)
  11.         {
  12.             output.add("OK");
  13.             setChanged();
  14.             notifyObservers();
  15.         }
  16.         //Both gui and console are running
  17.         else
  18.         {
  19.             map();
  20.         }
  21.     }
Add Comment
Please, Sign In to add comment