Lines Matching refs:c

871 			$c = array_splice($this->yystack[$this->yyidx + 0]->minor, 2);
873 $this->commands[] = array_merge(array($arr), $c);
3099 for ($c = 0; $c < $maxCols; $c++) {
3110 if (!isset($this->grid[$r][$c])) {
3114 $char = $this->getChar($r, $c);
3121 $e = $this->getChar($r, $c + 1);
3123 $line->addMarker($c, $r, Point::IMARKER);
3126 $se = $this->getChar($r + 1, $c + 1);
3127 $ne = $this->getChar($r - 1, $c + 1);
3129 $line->addMarker($c, $r, Point::IMARKER);
3132 $line->addMarker($c, $r, Point::IMARKER);
3138 $s = $this->getChar($r + 1, $c);
3140 $line->addMarker($c, $r, Point::IMARKER);
3142 } elseif ($this->getChar($r + 1, $c + 1) == "\\") {
3144 $line->addMarker($c, $r, Point::IMARKER);
3149 $w = $this->getChar($r, $c - 1);
3151 $line->addMarker($c, $r, Point::IMARKER);
3157 $n = $this->getChar($r - 1, $c);
3159 $line->addMarker($c, $r, Point::IMARKER);
3161 } elseif ($this->getChar($r - 1, $c + 1) == '/') {
3162 $line->addMarker($c, $r, Point::IMARKER);
3187 $n = $this->getChar($r-1, $c);
3188 $s = $this->getChar($r+1, $c);
3210 $w = $this->getChar($r, $c-1);
3211 $e = $this->getChar($r, $c+1);
3230 $ne = $this->getChar($r-1, $c+1);
3237 $se = $this->getChar($r+1, $c+1);
3253 $ne = $this->getChar($r-1, $c+1);
3254 $se = $this->getChar($r+1, $c+1);
3264 $n = $this->getChar($r-1, $c);
3265 $w = $this->getChar($r, $c-1);
3266 $s = $this->getChar($r+1, $c);
3267 $e = $this->getChar($r, $c+1);
3294 $line->addPoint($c, $r);
3320 $this->walk($line, $r+$rInc, $c+$cInc, $dir);
3561 $c = $col;
3575 $cur = $this->getChar($r, $c);
3582 $path->addTick($c, $r, ($cur == 'o') ? Point::DOT : Point::TICK);
3583 $path->addPoint($c, $r);
3586 $c += $cInc;
3588 $cur = $this->getChar($r, $c);
3593 $path->addPoint($c, $r, Point::CONTROL);
3595 $path->addPoint($c, $r);
3608 $n = $this->getChar($r - 1, $c);
3609 $s = $this->getChar($r + 1, $c);
3610 $e = $this->getChar($r, $c + 1);
3611 $w = $this->getChar($r, $c - 1);
3612 $next = $this->getChar($r + $rInc, $c + $cInc);
3614 $se = $this->getChar($r + 1, $c + 1);
3615 $ne = $this->getChar($r - 1, $c + 1);
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);
3648 $path->addMarker($c, $r, Point::SMARKER);
3655 $path->addPoint($c - $cInc, $r - $rInc);
3675 private function wallFollow($path, $r, $c, $dir, $bucket = array(), $d = 0) { argument
3687 $cur = $this->getChar($r, $c);
3690 $c += $cInc;
3691 $cur = $this->getChar($r, $c);
3695 $key = "{$r}{$c}";
3712 $pointExists = $path->addPoint($c, $r, Point::CONTROL);
3716 $pointExists = $path->addPoint($c, $r);
3729 if ($d == 1 && $cur == '.' && $this->getChar($r + 1, $c) == '.') {
3730 return $this->wallFollow($path, $r, $c + 1, $dir, $bucket, 0);
3739 $n = $this->getChar($r - 1, $c);
3740 $s = $this->getChar($r + 1, $c);
3741 $e = $this->getChar($r, $c + 1);
3742 $w = $this->getChar($r, $c - 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);
3853 } elseif ($this->isMarker($this->getChar($r, $c))) {
3924 $c = $p->gridX;
3934 $char = $this->getChar($r, $c);
3936 $this->grid[$r][$c++] = ' ';
3938 $this->clearCorners[] = array($r, $c++);
3940 $this->grid[$r][$c] = '+';