Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if(obj instanceof BDRock&&((askedToGo.equals(Direction.EAST)||askedToGo.equals(Direction.WEST)))){
- BDRock rock=(BDRock) obj;
- boolean push=false;
- push=rock.push(askedToGo);
- if(push){
- move=true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement