public CalcTargetCommand(BattleTarget target, BattleCommand command, CalcContext context) { _target = target; _command = command; _context = context; }
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); }
public BattleTarget(BTL_DATA data, CalcContext context) : base(data) { _context = context; }
public BattleCaster(BTL_DATA data, CalcContext context) : base(data) { _context = context; }