src/GameOfLife/Inputs/BoardEditor/BoardEditor.php
/**
     * Outputs the current board.
     *
     * @param String $_message The message that will be displayed below the board
     */
Outputs the current board.
@param String $_message The message that will be displayed below the board
Outputs the current board . @param String $_message The message that will be displayed below the board
public function outputBoard(String $_message = "")
    {
        $this->output->startOutput(new Getopt(), new Board(0, 0, 0, false));
        $numberOfNewLines = $this->shellInformationFetcher->getNumberOfShellLines() - $this->getNumberOfUsedLines();
        if ($this->highLightField != array())
        {
            $this->output->outputBoard($this->board, false, $this->highLightField["x"], $this->highLightField["y"]);
            $this->highLightField = array();
        }
        else $this->output->outputBoard($this->board, false, null, null, $this->selectionCoordinates);
        if ($numberOfNewLines < 0) $numberOfNewLines = 0;
        if ($_message) echo $_message;
        echo str_repeat("\n", $numberOfNewLines);
    }
public function outputBoard ( String $ _message = " " ) { $ this -> output -> startOutput ( new Getopt ( ) , new Board ( 0 , 0 , 0 , false ) ) ; $ numberOfNewLines = $ this -> shellInformationFetcher -> getNumberOfShellLines ( ) - $ this -> getNumberOfUsedLines ( ) ; if ( $ this -> highLightField != array ( ) ) { $ this -> output -> outputBoard ( $ this -> board , false , $ this -> highLightField [ " x " ] , $ this -> highLightField [ " y " ] ) ; $ this -> highLightField = array ( ) ; } else $ this -> output -> outputBoard ( $ this -> board , false , null , null , $ this -> selectionCoordinates ) ; if ( $ numberOfNewLines < 0 ) $ numberOfNewLines = 0 ; if ( $ _message ) echo $ _message ; echo str_repeat ( " \n " , $ numberOfNewLines ) ; }
Outputs the current board.
Outputs the current board .