public TimedPosition(TimedPosition other) : this(other.Position.Clone(), other.TurnStart, other.TurnEnd, other.Id, other.Type, other.PlayerId, other.StrategyId, other.DisplayName) { }
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); } } }
public TransitionFrame(TimedPosition position, TimedArea area) { Position = position; Area = area; }