示例#1
0
        private void SetAceBack()
        {
            var nStarters = 0;

            Committee = string.Empty;

            foreach (var p in Runners)
            {
                if (p.IsStarter() && !p.IsFullback())
                {
                    nStarters++;
                    nR1++;
                    AceBack = p;
                    if (R1 == null)
                    {
                        R1 = p;
                    }

                    Committee += p.PlayerNameShort + " + ";
                    Starters.Add(p);
#if DEBUG
                    //Utility.Announce( string.Format( "Setting Ace to {0}", p.PlayerName ) );
#endif
                }
            }
            if (nStarters != 1)
            {
                AceBack   = null;
                IsAceBack = false;
            }
        }
示例#2
0
 public StartersJob(IKeepTheTime timeKeeper)
     : base()
 {
     Name = "Starters";
      TimeKeeper = timeKeeper;
      Report = new Starters( doCsv: false )
      {
     TimeKeeper = TimeKeeper
      };
      Logger = NLog.LogManager.GetCurrentClassLogger();
      IsNflRelated = true;
 }
示例#3
0
        private void Reset()
        {
            Runners.Clear();
            GoalLineBack  = null;
            AceBack       = null;
            ThirdDownBack = null;

            R1 = null;
            R2 = null;

            nR1       = 0;
            nR2       = 0;
            Committee = string.Empty;
            Starters.Clear();
            IsAceBack = false;
        }
示例#4
0
        private void SetAceBack()
        {
            var nStarters = 0;

            Committee = string.Empty;

            foreach (var p in Runners)
            {
                Announce(
                    $"Plyr {p.PlayerName} role:{p.PlayerRole} pos:{p.PlayerPos}");

                if (!p.IsStarter() || p.IsFullback())
                {
                    continue;
                }

                nStarters++;
                nR1++;
                AceBack = p;
                if (R1 == null)
                {
                    R1 = p;
                }

                Committee += p.PlayerNameShort + " + ";
                Starters.Add(p);

                Announce($"Setting Ace to {p.PlayerName}");
            }

            Announce(string.Format("{0} starters", nStarters));
            if (nStarters == 1)
            {
                IsAceBack = true;
                return;
            }
            AceBack   = null;
            IsAceBack = false;
        }
示例#5
0
 public bool TandemBack(NFLPlayer p)
 {
     return(Starters.Count == 2 && Starters.Contains(p));
 }