public void AddWall(Wall wall) { _wallList.Add(wall); base.AddWall(wall); }
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); }
public override void AddWall(Point position) { var wall = new Wall(position); _wallList.Add(wall); base.AddWall(wall); }