public CalcCasterCommand(BattleCaster caster, BattleCommand command, CalcContext context) { _caster = caster; _command = command; _context = context; }
public BattleCalculator(BTL_DATA caster, BTL_DATA target, BattleCommand command) { Context = new CalcContext(); Command = command; Caster = new BattleCaster(caster, Context); Target = new BattleTarget(target, Context); CasterCommand = new CalcCasterCommand(Caster, Command, Context); TargetCommand = new CalcTargetCommand(Target, Command, Context); }