Beispiel #1
0
        public override void Notify()
        {
            this.pBomb = (Bomb)this.pSubject.pObjA;
            Debug.Assert(this.pBomb != null);


            if (pBomb.bMarkForDeath == false)
            {
                pBomb.bMarkForDeath = true;

                BombObserver pObserver = new BombObserver(this);
                DelayedObjectMan.Attach(pObserver);
            }
        }
Beispiel #2
0
 public BombObserver(BombObserver b)
 {
     Debug.Assert(b != null);
     this.pBomb = b.pBomb;
 }