Ejemplo n.º 1
0
    public void Tackle(DummyPokemon other)
    {
        //Tackles the other pokemon

        //Deal a random amount of damage
        Random randGen = new Random();
        int    damage  = randGen.Next(6, 10);

        other.currentHealth -= damage;
    }
Ejemplo n.º 2
0
    public void PoisonSting(DummyPokemon other)
    {
        //Poisons the target if it doesn't already have a status condition

        if (other.statusCondition != StatusCondition.none)
        {
            return;
        }

        other.statusCondition = StatusCondition.poisoned;
    }
Ejemplo n.º 3
0
    public static DummyBattleCommand CreateUseCommand(DummyPokemon user, DummyPokemon target, int moveToUse)
    {
        //Constructs a use move command.

        DummyBattleCommand command = new DummyBattleCommand();

        command.commandType   = DummyBattleCommandType.useMove;
        command.moveToUse     = moveToUse;
        command.userPokemon   = user;
        command.targetPokemon = target;
        command.text          = "used " + moveToUse + "!";

        return(command);
    }
Ejemplo n.º 4
0
 //Constructors
 public DummyBattle()
 {
     //Start out the dummy pokemon
     playerPokemon = new DummyPokemon();
     enemyPokemon  = new DummyPokemon();
 }