protected override void notifyObsevers(SpriteType name) { OLink temp = headObservers; while (temp != null) { ((ObserverData)temp).getObserver().notifyCollisionType(name); temp = temp.next; } }
public void addObserver(CollisionObserver colObserver) { if (headObservers == null) { headObservers = new ObserverData(colObserver); } else { OLink temp = new ObserverData(colObserver); temp.next = headObservers; headObservers = temp; } }
protected OLink() { this.pONext = null; this.pOPrev = null; }