Lines Matching refs:d
3558 private function walk($path, $row, $col, $dir, $d = 0) { argument
3559 $d++;
3618 return $this->walk($path, $r + $rInc, $c + $cInc, $dir, $d);
3624 return $this->walk($path, $r - 1, $c, self::DIR_UP, $d);
3631 return $this->walk($path, $r + 1, $c, self::DIR_DOWN, $d);
3635 return $this->walk($path, $r, $c + 1, self::DIR_RIGHT, $d);
3638 return $this->walk($path, $r, $c - 1, self::DIR_LEFT, $d);
3641 return $this->walk($path, $r - 1, $c + 1, self::DIR_NE, $d);
3644 return $this->walk($path, $r + 1, $c + 1, self::DIR_SE, $d);
3675 private function wallFollow($path, $r, $c, $dir, $bucket = array(), $d = 0) { argument
3676 $d++;
3729 if ($d == 1 && $cur == '.' && $this->getChar($r + 1, $c) == '.') {
3754 if ($d == 1) {
3789 $this->wallFollow($path, $r+$rMod, $c+$cMod, $newDir, $bucket, $d);
3808 $this->wallFollow($path, $r, $c - 1, self::DIR_LEFT, $bucket, $d);
3816 $this->wallFollow($path, $r, $c + 1, self::DIR_RIGHT, $bucket, $d);
3827 $this->wallFollow($path, $r - 1, $c, self::DIR_UP, $bucket, $d);
3839 $this->wallFollow($path, $r + 1, $c, self::DIR_DOWN, $bucket, $d);