public void Create(IBall ball, BrickType type) { switch (type) { case BrickType.ThreeBalls: { IPad pad = ballManager.GetPadAssignedToBall(ball); ballBuilder.Create(pad); ballBuilder.Create(pad); break; } case BrickType.DestroyerBall: { ITail tail = new Tail { FireBallTimerCallback = fireBallCounter.FireBallTimerHandler }; tailManager.Add(ball, tail); break; } default: break; } }
public void Initialize() { CreateLevel(false, new List <Player> { new Player { nr = 1, manipulator = 0, location = Edge.Bottom }, new Player { nr = 2, manipulator = 0, location = Edge.Bottom } }); ballBuilder.Create(GameConfig); }