You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
516 B
36 lines
516 B
<?php
|
|
|
|
namespace Coffee;
|
|
|
|
/**
|
|
* Class Tile
|
|
*
|
|
* @package Coffee
|
|
*/
|
|
class Tile extends Position {
|
|
/**
|
|
* @var bool
|
|
*/
|
|
private $containsElement = false;
|
|
|
|
/**
|
|
* Tile constructor.
|
|
*
|
|
* @param $row
|
|
* @param $column
|
|
* @param $containsElement
|
|
*/
|
|
public function __construct($row, $column, $containsElement) {
|
|
parent::__construct($row, $column);
|
|
|
|
$this->containsElement = $containsElement;
|
|
}
|
|
|
|
/**
|
|
* @return boolean
|
|
*/
|
|
public function containsElement() {
|
|
return $this->containsElement;
|
|
}
|
|
|
|
} |