public static BattleCommand CreateUseCommand(IndividualPokemon user, IndividualPokemon target, int moveToUse)
    {
        //Constructs a use move command.

        BattleCommand command = new BattleCommand();

        command.commandType   = BattleCommandType.useMove;
        command.moveToUse     = moveToUse;
        command.userPokemon   = user;
        command.targetPokemon = target;

        MovedexEntry moveEntry = user.GetMove(moveToUse).entry;

        command.text = user.displayName + " used " + moveEntry.moveName + "!";

        return(command);
    }
Esempio n. 2
0
 public static void AddEntry(MovedexEntry entry)
 {
     //Throw an exception if there's a duplicate id
     dex.AddEntry(entry.id, entry);
 }