Exemplo n.º 1
0
 public InterpolatedSkills(Func <ICharacterSkills> a, Func <ICharacterSkills> b, Func <float> getLerp)
 {
     CloseCombat    = new InterpolatedAttribute(() => a().CloseCombat, () => b().CloseCombat, getLerp);
     RangedCombat   = new InterpolatedAttribute(() => a().RangedCombat, () => b().RangedCombat, getLerp);
     CriticalChance = new InterpolatedAttribute(() => a().CriticalChance, () => b().CriticalChance, getLerp);
     LockPicking    = new InterpolatedAttribute(() => a().LockPicking, () => b().LockPicking, getLerp);
 }
Exemplo n.º 2
0
 public InterpolatedCombat(Func <ICombatAttributes> a, Func <ICombatAttributes> b, Func <float> getLerp)
 {
     _a         = a;
     _b         = b;
     _getLerp   = getLerp;
     LifePoints = new InterpolatedAttribute(() => a().LifePoints, () => b().LifePoints, getLerp);
 }
Exemplo n.º 3
0
 public InterpolatedAttributes(Func <ICharacterAttributes> a, Func <ICharacterAttributes> b, Func <float> getLerp)
 {
     Strength        = new InterpolatedAttribute(() => a().Strength, () => b().Strength, getLerp);
     Intelligence    = new InterpolatedAttribute(() => a().Intelligence, () => b().Intelligence, getLerp);
     Dexterity       = new InterpolatedAttribute(() => a().Dexterity, () => b().Dexterity, getLerp);
     Speed           = new InterpolatedAttribute(() => a().Speed, () => b().Speed, getLerp);
     Stamina         = new InterpolatedAttribute(() => a().Stamina, () => b().Stamina, getLerp);
     Luck            = new InterpolatedAttribute(() => a().Luck, () => b().Luck, getLerp);
     MagicResistance = new InterpolatedAttribute(() => a().MagicResistance, () => b().MagicResistance, getLerp);
     MagicTalent     = new InterpolatedAttribute(() => a().MagicTalent, () => b().MagicTalent, getLerp);
 }
 public InterpolatedCharacterSheet(Func <IEffectiveCharacterSheet> a, Func <IEffectiveCharacterSheet> b, Func <float> getLerp)
 {
     _a         = a;
     _b         = b;
     _getLerp   = getLerp;
     Age        = new InterpolatedAttribute(() => _a().Age, () => _b().Age, _getLerp);
     Magic      = new InterpolatedMagicSkills(() => _a().Magic, () => _b().Magic, _getLerp);
     Inventory  = new InterpolatedInventory(() => _a().Inventory, () => _b().Inventory, _getLerp);
     Attributes = new InterpolatedAttributes(() => _a().Attributes, () => _b().Attributes, _getLerp);
     Skills     = new InterpolatedSkills(() => _a().Skills, () => _b().Skills, _getLerp);
     Combat     = new InterpolatedCombat(() => _a().Combat, () => _b().Combat, _getLerp);
 }
Exemplo n.º 5
0
 public InterpolatedMagicSkills(Func <IMagicSkills> a, Func <IMagicSkills> b, Func <float> getLerp)
 {
     _b          = b;
     SpellPoints = new InterpolatedAttribute(() => a().SpellPoints, () => b().SpellPoints, getLerp);
 }