Ejemplo n.º 1
0
 public void Copy(DaggerfallStats other)
 {
     this.Strength = other.Strength;
     this.Intelligence = other.Intelligence;
     this.Willpower = other.Willpower;
     this.Agility = other.Agility;
     this.Endurance = other.Endurance;
     this.Personality = other.Personality;
     this.Speed = other.Speed;
     this.Luck = other.Luck;
 }
Ejemplo n.º 2
0
        public static DaggerfallStats GetClassBaseStats(DFCareer dfClass)
        {
            DaggerfallStats stats = new DaggerfallStats();

            stats.Strength = dfClass.Strength;
            stats.Intelligence = dfClass.Intelligence;
            stats.Willpower = dfClass.Willpower;
            stats.Agility = dfClass.Agility;
            stats.Endurance = dfClass.Endurance;
            stats.Personality = dfClass.Personality;
            stats.Speed = dfClass.Speed;
            stats.Luck = dfClass.Luck;

            return stats;
        }
Ejemplo n.º 3
0
 public StatsMacroDataSource(DaggerfallStats parent)
 {
     this.parent = parent;
 }
Ejemplo n.º 4
0
 public void SetStats(DaggerfallStats startingStats, DaggerfallStats workingStats, int bonusPool)
 {
     this.startingStats.Copy(startingStats);
     this.workingStats.Copy(workingStats);
     this.bonusPool = bonusPool;
     spinner.Value = bonusPool;
     UpdateStatLabels();
 }
Ejemplo n.º 5
0
        DaggerfallStats ReadStats(BinaryReader reader)
        {
            DaggerfallStats result = new DaggerfallStats();
            for (int i = 0; i < 8; i++)
            {
                result.SetStatValue(i, reader.ReadInt16());
            }

            return result;
        }