code: protected boolean isValidLocation(Mover mover, int sx, int sy, int x, int y) {
  		boolean invalid = (x < 0) || (y < 0) || (x >= map.getWidthInTiles()) || (y >= map.getHeightInTiles());
  		
  		if ((!invalid) && ((sx != x) || (sy != y))) {
  			this.mover = mover;
  			this.sourceX = sx;
  			this.sourceY = sy;
  			invalid = map.blocked(this, x, y);
  		}
  		
  		return !invalid;
  	}
docs: Check if a given location is valid for the supplied mover
  
  @param mover The mover that would hold a given location
  @param sx The starting x coordinate
  @param sy The starting y coordinate
  @param x The x coordinate of the location to check
  @param y The y coordinate of the location to check
  @return True if the location is valid for the given mover