示例#1
0
        /// <summary>
        /// Splits off some of this pop into a new pop with a different culture and religion
        /// </summary>
        /// <param name="quantity"></param>
        /// <param name="culture"></param>
        /// <param name="religion"></param>
        /// <returns></returns>
        public Pop Split(int quantity, string culture, string religion)
        {
            var newPop = new Pop(Type, Math.Min(quantity, Size), culture, religion);

            Size = Math.Max(0, Size - quantity);
            return(newPop);
        }
示例#2
0
 internal bool EquivalentTo(Pop pop)
 {
     return(pop.Type == Type && pop.Religion == Religion && pop.Culture == Culture);
 }
示例#3
0
 private void AddPop(Pop pop)
 {
     AddPop(pop.Type, pop.Size, pop.Culture, pop.Religion);
 }