Exemple #1
0
 public override void Notify()
 {
     if (IsValidCollision() && this.pBrick.isDead == false)
     {
         this.pBrick.isDead = true;
         DelayRemoveManager.Attach(new RemoveBrickObserver(this));
     }
 }
Exemple #2
0
        public override void Notify()
        {
            if (IsValidCollision() && !this.pBomb.isDead)
            {
                pBomb.isDead = true;

                ExplosionManager.GetBombExplosion(this.pBomb);

                DelayRemoveManager.Attach(new RemoveBombObserver(this));
            }
        }
Exemple #3
0
 public override void Notify()
 {
     if (this.IsValidCollision())
     {
         if (this.pAlien.isDead == false)
         {
             SoundManager.Play(Sound.Name.AlienExplode);
             this.pAlien.isDead = true;
             ExplosionManager.GetAlienExplosion(this.pAlien);
             DelayRemoveManager.Attach(new RemoveAlienObserver(this));
         }
     }
 }
Exemple #4
0
        public override void Notify()
        {
            if (this.IsValidCollision())
            {
                if (this.pMissile.isDead == false)
                {
                    Player pPlayer = PlayerManager.GetPlayer();
                    Debug.Assert(pPlayer != null);
                    pPlayer.SetShootingState(PlayerManager.ShootState.MissileReady);

                    this.pMissile.isDead = true;
                    this.pMissile.SetFlyingStatus(false);

                    DelayRemoveManager.Attach(new RemoveMissileObserver(this));
                }
            }
        }