Exemplo n.º 1
0
 public IEnumerable <FightEvent> EnumerateChildren()
 {
     for (FightEvent childEvent = firstChildEvent; childEvent != null; childEvent = childEvent.nextSiblingEvent)
     {
         yield return(childEvent);
     }
 }
Exemplo n.º 2
0
 public virtual bool CanBeGroupedWith(FightEvent other)
 {
     if (eventType == other.eventType)
     {
         return(parentEventId == other.parentEventId);
     }
     return(false);
 }
Exemplo 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;
        }
Exemplo n.º 4
0
 public override bool CanBeGroupedWith(FightEvent other)
 {
     return(false);
 }