示例#1
0
        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);
         }
     }
 }
示例#3
0
 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;
     }
 }
示例#4
0
 public TransitionFrame(TimedPosition position, TimedArea area)
 {
     Position = position;
     Area     = area;
 }