//Do this based off race public int GetAge(DataEntities.Race race) { Random rand = new Random(); var i = rand.Next(1, race.MaxAge); return(i); }
public DataEntities.Race ConvertToEntity() { var ret = new DataEntities.Race(); ret.Name = this.Name; ret.MaxAge = this.MaxAge; ret.AverageAgeBeforeDeath = this.AverageAgeBeforeDeath; return(ret); }
public DataEntities.Race GetRace() { var ret = new DataEntities.Race(); Random rand = new Random(); var i = rand.Next(0, this.Game.Races.Count); ret = this.Game.Races[i]; return(ret); }