Inheritance: FBLibrary.Core.BaseEntities.BaseWall
Example #1
0
        public void AddWall(Wall wall)
        {
            _wallList.Add(wall);

            base.AddWall(wall);
        }
Example #2
0
        private void RemoveWall(Wall wall)
        {
            if (GameConfiguration.Random.Next(0, 100) < MathHelper.Clamp(GameConfiguration.PowerUpPercentage, 0, 100))
            {
                AddPowerUp(wall.CellPosition);
            }

            _wallList.Remove(wall);

            base.RemoveWall(wall);

            Program.Log.Info("Delete wall at " + wall.CellPosition);
        }
Example #3
0
        public override void AddWall(Point position)
        {
            var wall = new Wall(position);
            _wallList.Add(wall);

            base.AddWall(wall);
        }