Пример #1
0
 /**
  * @param integer $x
  * @param integer $y
  * @param DrawTable $drawTable
  * @param WindowBounds $windowBounds
  * @return bool
  */
 private function outOfBoundsCheck($x, $y, DrawTable $drawTable, WindowBounds $windowBounds)
 {
     if ($x < $windowBounds->getMinX() || $x >= $windowBounds->getMaxX() || $x >= $drawTable->getWidth() || $y < $windowBounds->getMinY() || $y >= $windowBounds->getMaxY() || $y >= $drawTable->getHeight()) {
         return true;
     }
     return false;
 }
Пример #2
0
 public function drawTable(DrawTable $drawTable)
 {
     $this->output->write($drawTable->getAll());
 }