public HamsterData(Color bodyColor, Color bellyColor, string firstName, string lastName, HamsterStatus status, Dictionary <Stats.StatType, int> statValues) { this.bodyColor = bodyColor; this.bellyColor = bellyColor; this.firstName = firstName; this.lastName = lastName; items = new Dictionary <Item.ItemSlot, Item>(); statModifiers = new Dictionary <Stats.StatType, int>(); foreach (Stats.StatType statType in Stats.AllStatTypes) { statModifiers.Add(statType, 1); } this.statValues = statValues; this.status = status; }
public bool Mature() { bool changed = false; switch (status) { case HamsterStatus.Unborn: changed = true; status = HamsterStatus.Baby; break; case HamsterStatus.Baby: changed = true; status = HamsterStatus.Adult; break; case HamsterStatus.Adult: break; } return(changed); }
public HamsterData(Color bodyColor, Color bellyColor, string firstName, string lastName, HamsterStatus status) : this(bodyColor, bellyColor, firstName, lastName, status, RandomStats()) { }