public function __construct(CylinderSpace $space, BlockCollection $coll) { parent::__construct(); $this->space = $space; $this->level = $space->getLevel(true); if (!$this->level instanceof Level) { throw new \RuntimeException("Could not load level"); } $this->coll = $coll; }
public function completed() { return $this->slideDirection === self::DIRECTION_FORWARDS and !$this->blockStream->valid(); }