Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 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;
     }
 }
Exemplo n.º 4
0
 public TransitionFrame(TimedPosition position, TimedArea area)
 {
     Position = position;
     Area     = area;
 }