예제 #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--;
 }