Class PHP_Crossword_Cell

Description

PHP Crossword Cell

Located in /sources_custom/php-crossword/php_crossword_cell.class.php (line 29)


	
			
Variable Summary
mixed $can_cross
mixed $crossed
mixed $letter
mixed $number
mixed $x
mixed $y
Method Summary
PHP_Crossword_Cell PHP_Crossword_Cell (int $x, int $y)
boolean canCross (int $axis)
boolean canSetLetter (char $letter, int $axis)
void setCanCross (int $axis, boolean $can)
void setLetter (char $letter, int $axis,  &$grid, object $grid)
void __updateNeighbours (int $axis,  &$grid, object $grid)
Variables
mixed $can_cross = array(
PC_AXIS_H => TRUE,
PC_AXIS_V => TRUE
)
(line 38)
mixed $crossed = 0 (line 34)
mixed $letter (line 33)
mixed $number (line 36)
mixed $x (line 31)
mixed $y (line 32)
Methods
Constructor PHP_Crossword_Cell (line 49)

Constructor

PHP_Crossword_Cell PHP_Crossword_Cell (int $x, int $y)
  • int $x
  • int $y
canCross (line 111)

Check if the cell can cross

boolean canCross (int $axis)
  • int $axis
canSetLetter (line 149)

Check if it's possible to set letter

boolean canSetLetter (char $letter, int $axis)
  • char $letter
  • int $axis
getCanCrossAxis (line 158)

Get available axis for crossing

int getCanCrossAxis ()
setCanCross (line 121)

Set crossing possiblities

void setCanCross (int $axis, boolean $can)
  • int $axis
  • boolean $can
setLetter (line 61)

Set letter to the cell

void setLetter (char $letter, int $axis,  &$grid, object $grid)
  • char $letter
  • int $axis
  • object $grid
  • &$grid
__updateNeighbours (line 84)

Update neigbhour cells

  • private:
void __updateNeighbours (int $axis,  &$grid, object $grid)
  • int $axis
  • object $grid
  • &$grid

Documentation generated on Sun, 02 Jan 2011 23:22:10 +0000 by phpDocumentor 1.4.3