Example #1
0
 public override void Notify()
 {
     if (this.IsValidCollision())
     {
         ExplosionManager.GetPlayerExplosion(this.pPlayer);
         PlayerManager.PlayerDead();
     }
 }
Example #2
0
        public override void ShootMissile(Player pPlayer)
        {
            if (!PlayerManager.GetPlayerDeadOrAlive())
            {
                GameObject explosion = ExplosionManager.GetPlayerExplosion();
                pPlayer.x = explosion.x;
                pPlayer.y = explosion.y;
                PlayerManager.SetPlayerAlive();

                GameObject p = PlayerManager.GetMissile();
                p.x = -10;

                explosion.x = -100;
                explosion.y = -100;
                this.Handle(pPlayer);
            }
        }
Example #3
0
 public override void VisitPlayer(Player p)
 {
     ExplosionManager.GetPlayerExplosion(p);
     PlayerManager.PlayerDead();
 }