public PuzzleCog(PuzzlePanel parent, int shapeKey, Color shapeColor, Vector2 cogPosition, Vector2 cogArmPosition, Vector2 cogArmOrigin, Vector2 armPosition, CogRotationDirection cogArmDirection, CogRotationDirection cogDirection) { movementType = CogMovementType.Rotate; this.parent = parent; this.shapeKey = shapeKey; this.shapeColor = shapeColor; this.startPosition = cogArmPosition; this.endPosition = cogPosition; this.cogArmOrigin = cogArmOrigin; this.armPosition = armPosition; this.cogArmDirection = cogArmDirection; this.cogDirection = cogDirection; this.startScale = 1f; }
public PuzzleCog(PuzzlePanel parent, int shapeKey, Color shapeColor, Vector2 startPosition, Vector2 phase1Position, Vector2 endPosition, Vector2 armPosition, float startScale, float endScale, CogSlideDirection slideDirection, CogRotationDirection cogDirection) { movementType = CogMovementType.Slide; this.parent = parent; this.shapeKey = shapeKey; this.shapeColor = shapeColor; this.startPosition = startPosition; this.phase1Position = phase1Position; this.endPosition = endPosition; this.armPosition = armPosition; this.startScale = startScale; this.endScale = endScale; this.cogDirection = cogDirection; this.slideDirection = slideDirection; }