Пример #1
0
        public override void notify()
        {
            this.pBomb = this.pSubject.pObjA;
            Debug.Assert(this.pBomb != null);

            if (pBomb.bMarkForDeath == false)
            {
                pBomb.bMarkForDeath = true;
                //   Delay
                BombExplosionObsever pObserver = new BombExplosionObsever(this);
                DelayedObjectMan.Attach(pObserver);
            }
        }
Пример #2
0
 public BombExplosionObsever(BombExplosionObsever b)
 {
     this.pBomb = b.pBomb;
 }