Beispiel #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;
        }
Beispiel #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;
            }
        }
Beispiel #3
0
 public void SetAnimTimer(AnimationTimer ticker)
 {
     this.ticker = ticker;
 }