コード例 #1
0
        /// <summary>
        /// Constructor for Form Animation.
        /// </summary>
        /// <param name="_animationMode">The animation mode.</param>
        /// <param name="_formAnimation">The form animation.</param>
        /// <param name="animationSpeed">The animation speed.</param>
        /// <param name="upperSpeedLimit">The upper speed limit.</param>
        /// <param name="lowerSpeedLimit">The lower speed limit.</param>
        /// <param name="delay">The delay.</param>
        /// <param name="formDelay">The form delay.</param>
        /// <param name="control">The control.</param>
        public ObjectAnimatorInput(

            ZeroitObjectAnimationMode _animationMode,
            ZeroitObjectFormAnimation _formAnimation,
            int animationSpeed,
            int upperSpeedLimit,
            int lowerSpeedLimit,
            int delay,
            int formDelay,
            Control control

            ) :
            this(
                ZeroitObjectColorAnimation.FillEllipse,
                ZeroitObjectFormAnimation.FadeIn,
                ZeroitObjectStandardAnimation.Hop,
                ZeroitObjectAnimationMode.FormAnimation,
                Color.Orange,
                false,
                1,
                10,
                1,
                200,
                10,
                50,
                40,
                new int[] { 100, 50 },
                100,
                50
                )
        {
            this._animationMode  = _animationMode;
            this._formAnimation  = _formAnimation;
            this.animationSpeed  = animationSpeed;
            this.upperSpeedLimit = upperSpeedLimit;
            this.lowerSpeedLimit = lowerSpeedLimit;
            this.delay           = delay;
            this.formDelay       = formDelay;
            this.control         = control;
        }
コード例 #2
0
        //Internal Constructor
        /// <summary>
        /// Initializes a new instance of the <see cref="ObjectAnimatorInput"/> class.
        /// </summary>
        /// <param name="_colorAnimation">The color animation.</param>
        /// <param name="_formAnimation">The form animation.</param>
        /// <param name="_standardAnimation">The standard animation.</param>
        /// <param name="_animationMode">The animation mode.</param>
        /// <param name="color">The color.</param>
        /// <param name="keepColor">if set to <c>true</c> [keep color].</param>
        /// <param name="animationSpeed">The animation speed.</param>
        /// <param name="upperSpeedLimit">The upper speed limit.</param>
        /// <param name="lowerSpeedLimit">The lower speed limit.</param>
        /// <param name="delay">The delay.</param>
        /// <param name="colorDelay">The color delay.</param>
        /// <param name="formDelay">The form delay.</param>
        /// <param name="standardSlideDelay">The standard slide delay.</param>
        /// <param name="standardSlugDelay">The standard slug delay.</param>
        /// <param name="standardHopDelay">The standard hop delay.</param>
        /// <param name="standardShootDelay">The standard shoot delay.</param>
        public ObjectAnimatorInput(

            ZeroitObjectColorAnimation _colorAnimation,
            ZeroitObjectFormAnimation _formAnimation,
            ZeroitObjectStandardAnimation _standardAnimation,
            ZeroitObjectAnimationMode _animationMode,
            Color color,
            bool keepColor,
            int animationSpeed,
            int upperSpeedLimit,
            int lowerSpeedLimit,
            int delay,
            int colorDelay,
            int formDelay,
            int standardSlideDelay,
            int[] standardSlugDelay,
            int standardHopDelay,
            int standardShootDelay
            )
        {
            this._colorAnimation    = _colorAnimation;
            this._formAnimation     = _formAnimation;
            this._standardAnimation = _standardAnimation;
            this._animationMode     = _animationMode;
            this.color              = color;
            this.keepColor          = keepColor;
            this.animationSpeed     = animationSpeed;
            this.upperSpeedLimit    = upperSpeedLimit;
            this.lowerSpeedLimit    = lowerSpeedLimit;
            this.delay              = delay;
            this.colorDelay         = colorDelay;
            this.formDelay          = formDelay;
            this.standardSlideDelay = standardSlideDelay;
            this.standardSlugDelay  = standardSlugDelay;
            this.standardHopDelay   = standardHopDelay;
            this.standardShootDelay = standardShootDelay;
        }