public AnimatedSprite(PointF Location, SizeF ObjectSize, Image[] ImageFrames, decimal initialRotation, decimal pRotationSpeed, int pframeadvancedelay) : base(Location, ObjectSize, ImageFrames, pframeadvancedelay) { Debug.Print("AnimatedSprite Constructor..."); //if (ImageFrames == null) throw new ArgumentNullException("ImageFrames Argument cannot be null"); AnimationFrames = ImageFrames; SpriteAction = this; CurrentRotation = initialRotation; RotationSpeed = pRotationSpeed; NextAttributesFunc = NextAttribAlpha; }
public AnimatedSprite(PointF Location, Image ImageUse, decimal initialRotation, decimal pRotationSpeed, int pFrameadvancedelay, NextAttributesFunction pAttribFunc) : this(Location, ImageUse, initialRotation, pRotationSpeed, pFrameadvancedelay) { NextAttributesFunc = pAttribFunc; }