public void OverrideWith(TimedArea otherArea) { if (otherArea == null) { throw new ArgumentException("Overriding argument is not of type " + this.GetType()); } base.OverrideWith(otherArea); Area = otherArea.Area; DisplayName = otherArea.DisplayName; }
public IEnumerable <TimedArea> GetAllAreas(IncentiveType type) { foreach (TimedEvent timedEvent in Events) { TimedArea timedArea = timedEvent as TimedArea; if (timedArea != null && (type == IncentiveType.All || timedArea.Type == type)) { yield return(timedArea); } } }
public void OverrideWith(TransitionFrame other) { Position.OverrideWith(other.Position); if (Area == null) { Area = other.Area; } else { Area.OverrideWith(other.Area); } if (TailArea == null) { TailArea = other.TailArea; } else { TailArea = other.TailArea; } }
public TransitionFrame(TimedPosition position, TimedArea area) { Position = position; Area = area; }