Ejemplo n.º 1
0
 protected virtual void Boom(ShipMasterClass ship)
 {
     kaboum?.Invoke(this, new ColDetectEventArgs()
     {
         ship = ship
     });
 }
Ejemplo n.º 2
0
 public ColisionDetector(ShipMasterClass ufoBonus, ShipMasterClass[,] ufo, Ship player, Bullet playerBullet, Bullet enemysBullet)
 {
     this.player = player;
     allEnemyShip.Add(ufoBonus);
     foreach (ShipMasterClass ship in ufo)
     {
         allEnemyShip.Add(ship);
     }
 }
Ejemplo n.º 3
0
        private void DestroyShip(object sender, ColDetectEventArgs e)
        {
            ShipMasterClass deadShip = e.ship;

            deadShip = null;
        }