using System; using System.Collections.Generic; using System.Text; namespace SalsaModel { /// /// Information about a step. /// public class StepInfo { // not sure that polymorphism works for classes which are mostly // data! This feels a bit wrong too though. public enum StepType { NormalForwardBackward, ForwardBackwardNoSidewaysAdjust } public readonly StepType Type; public readonly double Distance; public StepInfo(double distance, StepType stepType) { Distance = distance; Type = stepType; } public static StepInfo Forward(double distance) { return new StepInfo(distance, StepType.NormalForwardBackward); } } }