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