public Animation(Point animCell, Size size) { this.drawPoint = new PointF(0f, 0f); this.frameTimer = new CountDown(0, true); this.rotation = Direction.Up; this.repeat = true; this.direction = Direction.Right; this.tileRow = animCell.Y; this.type = AnimHitType.None; this.textureSize = size; this.hCenter = size.Width / 2; this.frameTimer.Max = 1; this.sequence = new int[] { animCell.X }; this.secondardyCollisionRectangle = new RectangleF(0f, 0f, 2f, 2f); }
public Animation(AnimHitType p_type, Size p_textureSize, int[] p_sequence, int p_speed, int p_hCenter, bool p_flip) { this.drawPoint = new PointF(0f, 0f); this.frameTimer = new CountDown(0, true); this.rotation = Direction.Up; this.repeat = true; this.direction = Direction.Right; this.flip = p_flip; this.type = p_type; this.textureSize = p_textureSize; this.hCenter = p_hCenter; this.frameTimer.Max = p_speed; this.sequence = new int[p_sequence.Length]; p_sequence.CopyTo(this.sequence, 0); this.secondardyCollisionRectangle = new RectangleF(0f, 0f, 2f, 2f); }