Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="isPostSafety">bool</param>
        private void DoKickoff(bool isPostSafety)
        {
            int startYardline = DEFAULT_STARTING_YARDLINE;

            if (isPostSafety)
            {
                startYardline = DEFAULT_STARTING_YARDLINE_SAFETY;
            }

            ChangePossession();
            ToggleDirection();

            SetBall(startYardline, this.currentDirection, this.teamInPossession, this.teamNotInPossession);

            Kickoff kickoff = new Kickoff(this.game.GameAnnouncer, this, Direction.Right, this.teamNotInPossession, this.TeamInPossession);

            kickoff.Execute();
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="coinFlipWinner">CoinFlipWinner</param>
        private void Kickoff(CoinFlipWinner coinFlipWinner)
        {
            Kickoff kickoff = new Kickoff(this.announcer, this.cc, Direction.Right, coinFlipWinner.Loser, coinFlipWinner.Winner);

            kickoff.Execute();
        }