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