protected override void notifyObsevers(SpriteType name)
        {
            OLink temp = headObservers;

            while (temp != null)
            {
                ((ObserverData)temp).getObserver().notifyCollisionType(name);
                temp = temp.next;
            }
        }
Exemple #2
0
 public void addObserver(CollisionObserver colObserver)
 {
     if (headObservers == null)
     {
         headObservers = new ObserverData(colObserver);
     }
     else
     {
         OLink temp = new ObserverData(colObserver);
         temp.next     = headObservers;
         headObservers = temp;
     }
 }
Exemple #3
0
 protected OLink()
 {
     this.pONext = null;
     this.pOPrev = null;
 }