Esempio n. 1
0
 public IEnumerable <FightEvent> EnumerateChildren()
 {
     for (FightEvent childEvent = firstChildEvent; childEvent != null; childEvent = childEvent.nextSiblingEvent)
     {
         yield return(childEvent);
     }
 }
Esempio n. 2
0
 public virtual bool CanBeGroupedWith(FightEvent other)
 {
     if (eventType == other.eventType)
     {
         return(parentEventId == other.parentEventId);
     }
     return(false);
 }
Esempio n. 3
0
        public void AddChildEvent(FightEvent fightEvent)
        {
            fightEvent.parentEvent = this;
            if (firstChildEvent == null)
            {
                firstChildEvent = fightEvent;
                return;
            }
            FightEvent fightEvent2 = firstChildEvent;
            FightEvent fightEvent3;

            do
            {
                fightEvent3 = fightEvent2;
                fightEvent2 = fightEvent3.nextSiblingEvent;
            }while (fightEvent2 != null);
            fightEvent3.nextSiblingEvent = fightEvent;
        }
Esempio n. 4
0
 public override bool CanBeGroupedWith(FightEvent other)
 {
     return(false);
 }