Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Room
- {
- public boolean outletN, outletS, outletE, outletW; //valid syntax to declare several bools at once
- public char dispChar;
- public Room( boolean N, boolean E, boolean S, boolean W)
- {
- outletN = N;
- outletE = E;
- outletS = S;
- outletW = W;
- if (outletN && !outletE && !outletS && !outletW) { dispChar = 'Q'; }
- else if (...
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement