Пример #1
0
 public TimedPosition(TimedPosition other)
     : this(other.Position.Clone(),
            other.TurnStart,
            other.TurnEnd,
            other.Id,
            other.Type,
            other.PlayerId,
            other.StrategyId,
            other.DisplayName)
 {
 }
Пример #2
0
        public void OverrideWith(TimedPosition otherPosition)
        {
            if (otherPosition == null)
            {
                throw new ArgumentException("Overriding argument is not of type " + this.GetType());
            }

            base.OverrideWith(otherPosition);
            Position    = otherPosition.Position;
            DisplayName = otherPosition.DisplayName;
        }
 public IEnumerable <TimedPosition> GetAllPositions(IncentiveType type)
 {
     foreach (TimedEvent timedEvent in Events)
     {
         TimedPosition timedPosition = timedEvent as TimedPosition;
         if (timedPosition != null && (type == IncentiveType.All || timedPosition.Type == type))
         {
             yield return(timedPosition);
         }
     }
 }
Пример #4
0
 public TransitionFrame(TimedPosition position, TimedArea area)
 {
     Position = position;
     Area     = area;
 }