Пример #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);
 }
Пример #2
0
 public void DispatchCommand(MoveCommand command)
 {
     ExecMove(Data.GetPokemon(command.Source), command.Move, Data.GetPokemon(command.Target));
 }
Пример #3
0
 private void ExecuteMoveCommand(CommandExecuter executer, ClientIdentifier clientIdentifier, int damage)
 {
     var command = new MoveCommand(clientIdentifier, clientIdentifier, factory.CreateMove());
     calculator.Damage = damage;
     executer.DispatchCommand(command);
 }
Пример #4
0
 public void SetMove(ClientIdentifier id, ClientIdentifier target, Move move)
 {
     ValidateInput(id, move, "move");
     commands[id] = new MoveCommand(id, target, move);
     clientCnt--;
 }