コード例 #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;
        }
コード例 #2
0
 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;
 }