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;
 }
Example #2
0
 public function completed()
 {
     return $this->slideDirection === self::DIRECTION_FORWARDS and !$this->blockStream->valid();
 }