/// <summary> /// Initializes or resets all data in the program. /// </summary> private void InitializeData() { this.characterClass = new CharacterClass(1, 1, 1, 1, 1, 1, 1); this.playerStats = new PlayerStats(this.characterClass.Clone() as CharacterClass); this.ResetPropertyGrids(); }
/// <summary> /// Creates a new object that is a copy of the current instance. /// </summary> /// <returns>A new object that is a copy of this instance.</returns> public object Clone() { CharacterClass characterClass = new CharacterClass(); characterClass.EvadeModifier = this.EvadeModifier; characterClass.HitPointsModifier = this.HitPointsModifier; characterClass.MagicModifier = this.MagicModifier; characterClass.ResistanceModifier = this.ResistanceModifier; characterClass.SkillModifier = this.SkillModifier; characterClass.SpeedModifier = this.SpeedModifier; characterClass.StrengthModifier = this.StrengthModifier; return characterClass; }