public BattleStat(IStatFormula formula, BattleStatType statType, IEnumerable <decimal>?modifiers = null) { Formula = formula; StatType = statType; Value = 1; Modifiers = modifiers?.ToList() ?? new List <decimal>(); }
public BattlePokemonBuilder(IStatFormula statFormula, string name, int lvl) { StatFormula = statFormula; Name = name; Level = lvl; PermanentStatBuilder = new PermanentStatBuilder(statFormula); BattleStatBuilder = new BattleStatBuilder(statFormula); }
public PermanentStatBuilder(IStatFormula formula) { Formula = formula; BaseValues = new Dictionary <PermanentStatType, int>(); IndividualValues = new Dictionary <PermanentStatType, int>(); EffortValues = new Dictionary <PermanentStatType, int>(); IndividualValues.WithDefaults(); EffortValues.WithDefaults(); }
public PermanentStat( IStatFormula formula, PermanentStatType statType, int baseValue, int level, int individualValue, int effortValue) { Formula = formula; StatType = statType; BaseValue = baseValue; Level = level; IndividualValue = individualValue; EffortValue = effortValue; ModifiedValue = baseValue; Modifiers = new List <decimal>(); }
public BattleStatBuilder(IStatFormula formula) { Formula = formula; Modifiers = new List <decimal>(); }
/// <summary> /// Set the formula to use for value generation /// </summary> /// <param name="formula">Formula to use</param> public void SetFormula(IStatFormula <int> formula) { this.Formula = formula; }