private Navigation()
 {
     board     = new CentralBoard();
     motor     = new MotorControl();
     dynamixel = DX.i;
     running   = false;
     Moving    = false;
     Speed     = 0;
 }
示例#2
0
 private void SearchPlayerBtn_Click(object sender, EventArgs e)
 {
     CentralBoard.Clear();
     CentralBoard.View = View.List;
     if (PlayersListBoard.Text == owner.Name)
     {
         CentralBoard.Items.Add("Name: " + owner.Name);
         CentralBoard.Items.Add("Money: " + owner.Money);
         CentralBoard.Items.Add("# of Buildings: " + owner.PlayerProps.Count);
         int value = 0;
         foreach (Building props in owner.PlayerProps)
         {
             value += props.price;
         }
         CentralBoard.Items.Add("Value of the empire: " + value);
     }
 }