コード例 #1
0
    public override void Proceed(ControlledDivision Host)
    {
        if (Host.FindVisibleDivision(RememberedTargetId, out _visibleTarget))
        {
            if (RememberedTargetId == _endTargetId)
            {
                _visibleTarget.ReceiveOrders(_message);
            }
            else
            {
                _visibleTarget.SendOrdersTo(GetRememberedDivisionFromHost(_visibleTarget, _endTargetId),
                                            _message, ref _visibleTarget.RememberedDivisions);
            }

            _hasFoundTarget = true;
        }
    }