Пример #1
0
        private void InitObjectsData()
        {
            //ScoreBlock.Content.Text = "Score: ";
            //ScoreBlock.Number.Text = "0";
            //CombosBlock.Content.Text = "Combo: ";
            //CombosBlock.Number.Text = "0";
            //SkillBlock.Content.Text = "Skill: ";
            //SkillBlock.Number.Text = "0";
            scoreText = ScoreText;
            skb = GetPoint;
            //balls.
            for (int i = 0; i < 5; i++)
                balls.Add(new FlyingBall());
            for (int i = 0; i < 3; i++)
            {
                bottles.Add(new FlyingBottle());
                bottles[i].bId = -1;
            }

            bottles[0] = bottle1;
            bottles[1] = bottle2;
            bottles[2] = bottle3;

            balls[0] = LeftBall;
            balls[1] = ObliqueLeftBall;
            balls[2] = MiddleBall;
            balls[3] = ObliqueRightBall;
            balls[4] = RightBall;
        }
Пример #2
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 8 "..\..\GameWindow.xaml"
     ((StartConnector.GameWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);
     
     #line default
     #line hidden
     
     #line 9 "..\..\GameWindow.xaml"
     ((StartConnector.GameWindow)(target)).KeyDown += new System.Windows.Input.KeyEventHandler(this.controlPlayer);
     
     #line default
     #line hidden
     
     #line 9 "..\..\GameWindow.xaml"
     ((StartConnector.GameWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);
     
     #line default
     #line hidden
     return;
     case 2:
     this.BackgroundImg = ((System.Windows.Media.ImageBrush)(target));
     return;
     case 3:
     this.GameWindowCanvas = ((System.Windows.Controls.Canvas)(target));
     return;
     case 4:
     this.ResultPanel = ((StartConnector.ResultMenu)(target));
     return;
     case 5:
     this.Maya = ((StartConnector.Player)(target));
     return;
     case 6:
     this.bottle1 = ((StartConnector.FlyingBottle)(target));
     return;
     case 7:
     this.bottle2 = ((StartConnector.FlyingBottle)(target));
     return;
     case 8:
     this.bottle3 = ((StartConnector.FlyingBottle)(target));
     return;
     case 9:
     this.GetPoint = ((StartConnector.ShakingBall)(target));
     return;
     case 10:
     this.CountDown = ((StartConnector.CountingDown)(target));
     return;
     case 11:
     this.ScoreText = ((System.Windows.Controls.Label)(target));
     return;
     case 12:
     this.LeftBall = ((StartConnector.FlyingBall)(target));
     return;
     case 13:
     this.ObliqueLeftBall = ((StartConnector.FlyingBall)(target));
     return;
     case 14:
     this.MiddleBall = ((StartConnector.FlyingBall)(target));
     return;
     case 15:
     this.ObliqueRightBall = ((StartConnector.FlyingBall)(target));
     return;
     case 16:
     this.RightBall = ((StartConnector.FlyingBall)(target));
     return;
     }
     this._contentLoaded = true;
 }