I'm using enums for the first time and I'm a bit confused.
I have:
if (type != (Board.PIT | Board.NORMAL | Board.PAIR | Board.ROT | Board.UNDER
Board.NORTH | Board.EAST | Board.SOUTH | Board.WEST) )
isUpper = true;
Eclipse gives me the warning "The operator | is undefined for the argument type(s) boolean, Board.PIT."
Okay, so if I can't use |, what am I supposed to use instead? I could make a switch, but that would be very repetitive, so surely that's not the best way to do it:
switch(type) {
case PIT: isUpper = true;
case NORMAL: isUpper = true;
...and so on.