Esempio n. 1
0
 public override string ToString()
 {
     return(BlueA.ToString() + "-" +
            BlueB.ToString() + "-" +
            BlueC.ToString() + " vs " +
            RedA.ToString() + "-" +
            RedB.ToString() + "-" +
            RedC.ToString());
 }
        public void UpdateIndicators(Match match)
        {
            if (match == null)
            {
                RedA.SetNumber(-1);
                RedB.SetNumber(-1);
                RedC.SetNumber(-1);
                BlueA.SetNumber(-1);
                BlueB.SetNumber(-1);
                BlueC.SetNumber(-1);

                return;
            }

            RedA.SetNumber(match.RedAlliance.TeamA_ID);
            RedB.SetNumber(match.RedAlliance.TeamB_ID);
            RedC.SetNumber(match.RedAlliance.TeamC_ID);
            BlueA.SetNumber(match.BlueAlliance.TeamA_ID);
            BlueB.SetNumber(match.BlueAlliance.TeamB_ID);
            BlueC.SetNumber(match.BlueAlliance.TeamC_ID);
        }