Ejemplo n.º 1
0
 private Navigation()
 {
     board     = new CentralBoard();
     motor     = new MotorControl();
     dynamixel = DX.i;
     running   = false;
     Moving    = false;
     Speed     = 0;
 }
Ejemplo n.º 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);
     }
 }