Esempio n. 1
0
 private void ExecuteMoveCommand(CommandExecuter executer, bool critical = false, float typeModifier = 1, ClientIdentifier target = null, StatusCondition newCondition = StatusCondition.Normal)
 {
     if (target == null)
         target = factory.PlayerID;
     var command = new MoveCommand(target, target, factory.CreateMove());
     calculator.IsCritical = critical;
     calculator.TypeModifier = typeModifier;
     calculator.StatusCondition = newCondition;
     executer.DispatchCommand(command);
 }
Esempio n. 2
0
 private void ExecuteMoveCommand(CommandExecuter executer, ClientIdentifier clientIdentifier, int damage)
 {
     var command = new MoveCommand(clientIdentifier, clientIdentifier, factory.CreateMove());
     calculator.Damage = damage;
     executer.DispatchCommand(command);
 }