Exemple #1
0
 private void AddBomb()
 {
     foreach (var bomb in Bombs)
     {
         // if there is bomb on the same tile
         if (GameElement.OnTheSameTile(bomb, Player))
         {
             return;
         }
     }
     Bombs.Add(new Bomb(Player.MapCenterPositionX, Player.MapCenterPositionY));
 }