Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Player"/> class as an AIPlayer for debug purposes.
 /// </summary>
 /// <param name="species">The species.</param>
 /// <param name="team">The team.</param>
 /// <param name="color">The color.</param>
 public Player(Species species, TeamID team, GameColor color) {
     _speciesStat = SpeciesFactory.Instance.MakeInstance(species);
     _leaderStat = LeaderFactory.Instance.MakeInstance(species);
     IQ = IQ.Normal;
     Team = team;
     Color = color;
     IsUser = false;
     InitializeValuesAndReferences();
 }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Player" /> class.
        /// </summary>
        /// <param name="speciesStat">The species stat.</param>
        /// <param name="leaderStat">The leader stat.</param>
        /// <param name="iq">The IQ.</param>
        /// <param name="team">The team.</param>
        /// <param name="color">The color.</param>
        /// <param name="isUser">if set to <c>true</c> [is user].</param>
        public Player(SpeciesStat speciesStat, LeaderStat leaderStat, IQ iq, TeamID team, GameColor color, bool isUser = false) {
            _speciesStat = speciesStat;
            _leaderStat = leaderStat;
            IQ = iq;
            Team = team;
            Color = color;
            IsUser = isUser;

            InitializeValuesAndReferences();
        }