PHPWarrior\Abilities\Bind::perform PHP Method

perform() public method

public perform ( $direction = 'forward' )
    public function perform($direction = 'forward')
    {
        $direction = \PHPWarrior\Position::normalize_direction($direction);
        $this->verify_direction($direction);
        $receiver = $this->unit($direction);
        if ($receiver) {
            $this->unit->say(sprintf(__('binds %1$s and restricts %2$s'), __($direction), $receiver));
            $receiver->bind();
        } else {
            $this->unit->say(sprintf(__("binds %s and restricts nothing"), $direction));
        }
    }