public StatSystem(int[] newStats) { stats = new Stat[9]; for (int i = 0; i < stats.Length; ++i) { stats[i] = new Stat((StatType)i, newStats[i]); } }
public StatSystem() { stats = new Stat[9]; for (int i = 0; i < 9; ++i) { stats[i] = new Stat((StatType)i, 0); } }
public StatSystem(double strength, double toughness, int health, int intellect, int perception, int sanity, int faith, int wisdom, int vitality) { stats = new Stat[9]; stats[0] = new Stat(StatType.Strength, strength); stats[1] = new Stat(StatType.Toughness, toughness); stats[2] = new Stat(StatType.Health, health); stats[3] = new Stat(StatType.Intellect, intellect); stats[4] = new Stat(StatType.Perception, perception); stats[5] = new Stat(StatType.Sanity, sanity); stats[6] = new Stat(StatType.Faith, faith); stats[7] = new Stat(StatType.Wisdom, wisdom); stats[8] = new Stat(StatType.Vitality, vitality); }