Advertisement
truefire

Untitled

Sep 10th, 2012
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. public class Room
  2. {
  3.     public boolean outletN, outletS, outletE, outletW; //valid syntax to declare several bools at once
  4.     public char dispChar;
  5.     public Room( boolean N, boolean E, boolean S, boolean W)
  6.     {
  7.         outletN = N;
  8.         outletE = E;
  9.         outletS = S;
  10.         outletW = W;
  11.  
  12.         if (outletN && !outletE && !outletS && !outletW) { dispChar = 'Q'; }
  13.         else if (...
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement