예제 #1
0
        public Animation(Control parent, string name, int transform, List <KeyFrame> keyFrames, int ms, AnimationTimer ticker)
        {
            animationTicker = ticker;
            animationTicker.AddAnimation(this);
            this.transform = transform;
            this.parent    = parent;

            this.iterations = (ms / animationTicker.Interval) + 1;

            this.name = name;
        }
예제 #2
0
        public Animation(Control parent, string name, int transform, int a, int b, int ms, AnimationTimer ticker)
        {
            animationTicker = ticker;
            animationTicker.AddAnimation(this);
            this.transform = transform;
            this.parent    = parent;

            this.iterations = (ms / animationTicker.Interval) + 1;

            this.name = name;

            if (this.transform == 0)
            {
                this.x = a;
                this.y = b;
            }
            else if (this.transform == 1)
            {
                this.w = a;
                this.h = b;
            }
        }
예제 #3
0
 public void SetAnimTimer(AnimationTimer ticker)
 {
     this.ticker = ticker;
 }