public Person(Faction f, Region r) { if (f == null) { throw new Exception("Faction should not be null"); } if (r == null) { throw new Exception("Region should not be null"); } this.Num = _maxNum + 1; _maxNum++; this.Faction = f; this.Region = r; List.Add(this); }
public Battle(Person attacker, Person defender, Region region) { PersonList attackers = new PersonList(); attackers.Add(attacker); Init(attackers, defender, region); }
public new PersonList Clone() { PersonList res = new PersonList(); foreach (Person p in this) { res.Add(p); } return(res); }