コード例 #1
0
        public CalcTargetCommand(BattleTarget target, BattleCommand command, CalcContext context)
        {
            _target  = target;
            _command = command;

            _context = context;
        }
コード例 #2
0
        public CalcCasterCommand(BattleCaster caster, BattleCommand command, CalcContext context)
        {
            _caster  = caster;
            _command = command;

            _context = context;
        }
コード例 #3
0
 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);
 }
コード例 #4
0
ファイル: BattleTarget.cs プロジェクト: ArtReeX/memoria
 public BattleTarget(BTL_DATA data, CalcContext context)
     : base(data)
 {
     _context = context;
 }
コード例 #5
0
ファイル: BattleCaster.cs プロジェクト: Zer0Ph34r/GUI_Branch
 public BattleCaster(BTL_DATA data, CalcContext context)
     : base(data)
 {
     _context = context;
 }