Beispiel #1
0
        private bool TryTriggerBomb()
        {
            Bomb triggerBomb = m_bombs.GetFirstTriggerBomb();

            if (triggerBomb != null)
            {
                triggerBomb.Blow();
                return(true);
            }

            return(false);
        }
Beispiel #2
0
        //////////////////////////////////////////////////////////////////////////////

        #region Bombs

        public void SetBomb(Bomb bomb)
        {
            AddCell(bomb);

            FieldCellSlot slot    = GetSlot(bomb);
            PowerupCell   powerup = slot.GetPowerup();

            if (powerup != null)
            {
                powerup.RemoveFromField();
            }
            else
            {
                FlameCell flame = slot.GetFlame();
                if (flame != null)
                {
                    bomb.Blow();
                }
            }
        }