Ejemplo n.º 1
0
        public PD_InfectionReport(
            bool happenedDuringGameSetup,

            int playerWhoAppliesInfection,
            int initialCity,

            int infectionType,
            int initialNumberOfCubes,

            List <int> infectedCities,
            List <int> infectionsPrevented_ByMedic,
            List <int> citiesThatHaveCausedOutbreaks,

            int numberOfInfectionCubesUsed,
            InfectionFailureReasons failureReason
            )
        {
            this.HappenedDuringGameSetup = happenedDuringGameSetup;

            this.PlayerWhoAppliesInfection = playerWhoAppliesInfection;
            this.InitialCity = initialCity;

            this.InfectionType        = infectionType;
            this.InitialNumberOfCubes = initialNumberOfCubes;

            this.InfectedCities = infectedCities.CustomDeepCopy();
            this.InfectionsPrevented_ByMedic   = infectionsPrevented_ByMedic.CustomDeepCopy();
            this.CitiesThatHaveCausedOutbreaks = citiesThatHaveCausedOutbreaks.CustomDeepCopy();

            this.NumberOfInfectionCubesUsed = numberOfInfectionCubesUsed;
            this.FailureReason = failureReason;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// normal constructor
        /// </summary>
        /// <param name="playerWhoAppliesInfection"></param>
        /// <param name="initialCity"></param>
        /// <param name="infectionType"></param>
        /// <param name="initialNumberOfCubes"></param>
        public PD_InfectionReport(
            bool happenedDuringGameSetup,

            int playerWhoAppliesInfection,
            int initialCity,

            int infectionType,
            int initialNumberOfCubes
            )
        {
            HappenedDuringGameSetup = happenedDuringGameSetup;

            PlayerWhoAppliesInfection = playerWhoAppliesInfection;
            InitialCity = initialCity;

            InfectionType        = infectionType;
            InitialNumberOfCubes = initialNumberOfCubes;

            InfectedCities = new List <int>();
            InfectionsPrevented_ByMedic   = new List <int>();
            CitiesThatHaveCausedOutbreaks = new List <int>();

            NumberOfInfectionCubesUsed = 0;
            FailureReason = InfectionFailureReasons.none;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// private constructor, for deep copy purposes only
        /// </summary>
        /// <param name="reportToCopy"></param>
        private PD_InfectionReport(
            PD_InfectionReport reportToCopy
            )
        {
            this.HappenedDuringGameSetup =
                reportToCopy.HappenedDuringGameSetup;

            this.PlayerWhoAppliesInfection =
                reportToCopy.PlayerWhoAppliesInfection;
            this.InitialCity =
                reportToCopy.InitialCity;

            this.InfectionType =
                reportToCopy.InfectionType;
            this.InitialNumberOfCubes =
                reportToCopy.InitialNumberOfCubes;

            this.InfectedCities =
                reportToCopy.InfectedCities.CustomDeepCopy();
            this.InfectionsPrevented_ByMedic =
                reportToCopy.InfectionsPrevented_ByMedic.CustomDeepCopy();
            this.CitiesThatHaveCausedOutbreaks =
                reportToCopy.CitiesThatHaveCausedOutbreaks.CustomDeepCopy();

            this.NumberOfInfectionCubesUsed =
                reportToCopy.NumberOfInfectionCubesUsed;
            this.FailureReason =
                reportToCopy.FailureReason;
        }
Ejemplo n.º 4
0
 public void SetFailureReason(InfectionFailureReasons failureReason)
 {
     FailureReason = failureReason;
 }