Esempio n. 1
0
        public Game(string identifier, string name, string homeTeam, string awayTeam)
        {
            _homeBatters    = new List <Batter>();
            _awayBatters    = new List <Batter>();
            _homePitchers   = new List <Pitcher>();
            _awayPitchers   = new List <Pitcher>();
            _name           = name;
            _inning         = new Inning();
            _identifier     = identifier;
            _nextHomeBatter = 0;
            _nextAwayBatter = 1;

            _homeBatters  = GetHomeBatters(homeTeam);
            _homePitchers = GetHomePitchers(homeTeam);
            _awayBatters  = GetAwayBatters(awayTeam);
            _awayPitchers = GetAwayPitchers(awayTeam);

            _currentAtBat = new AtBat(_awayBatters[0], _homePitchers[0]);
        }
Esempio n. 2
0
        public Game(string identifier, string name, string homeTeam, string awayTeam)
        {
            _homeBatters = new List<Batter>();
            _awayBatters = new List<Batter>();
            _homePitchers = new List<Pitcher>();
            _awayPitchers = new List<Pitcher>();
            _name = name;
            _inning = new Inning();
            _identifier = identifier;
            _nextHomeBatter = 0;
            _nextAwayBatter = 1;

            _homeBatters = GetHomeBatters(homeTeam);
            _homePitchers = GetHomePitchers(homeTeam);
            _awayBatters = GetAwayBatters(awayTeam);
            _awayPitchers = GetAwayPitchers(awayTeam);

            _currentAtBat = new AtBat(_awayBatters[0], _homePitchers[0]);
        }