Beispiel #1
0
        internal ArrangementOrder(ArrangementOrder.ArrangementOrderEnum orderEnum)
        {
            this.OrderEnum        = orderEnum;
            this._walkRestriction = new float?();
            switch (this.OrderEnum)
            {
            case ArrangementOrder.ArrangementOrderEnum.Circle:
                this._runRestriction = new float?(0.5f);
                break;

            case ArrangementOrder.ArrangementOrderEnum.Line:
                this._runRestriction = new float?(0.8f);
                break;

            case ArrangementOrder.ArrangementOrderEnum.Loose:
            case ArrangementOrder.ArrangementOrderEnum.Scatter:
            case ArrangementOrder.ArrangementOrderEnum.Skein:
                this._runRestriction = new float?(0.9f);
                break;

            case ArrangementOrder.ArrangementOrderEnum.ShieldWall:
            case ArrangementOrder.ArrangementOrderEnum.Square:
                this._runRestriction = new float?(0.3f);
                break;

            default:
                this._runRestriction = new float?(1f);
                break;
            }
            this._unitSpacing = ArrangementOrder.GetUnitSpacingOf(this.OrderEnum);
            this.tickTimer    = new Timer(MBCommon.GetTime(MBCommon.TimeType.Mission), 0.5f);
        }