Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1. else if(obj instanceof BDRock&&((askedToGo.equals(Direction.EAST)||askedToGo.equals(Direction.WEST)))){
  2.                     BDRock rock=(BDRock) obj;
  3.                     boolean push=false;
  4.                    
  5.                          push=rock.push(askedToGo);
  6.                    
  7.                     if(push){
  8.                         move=true;
  9.                     }
  10.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement