Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
        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);
        }