/// <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); }
internal bool EquivalentTo(Pop pop) { return(pop.Type == Type && pop.Religion == Religion && pop.Culture == Culture); }
private void AddPop(Pop pop) { AddPop(pop.Type, pop.Size, pop.Culture, pop.Religion); }