Exemplo n.º 1
0
 public function isActivated(Block $from = null)
 {
     if (!$from instanceof Block) {
         return false;
     } else {
         if ($this->y != $from->y) {
             return false;
         }
         if ($from->equals($this->getSide($this->getOppositeDirection()))) {
             return true;
         }
         return false;
     }
 }