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; }
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; }
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); }
//Constructors public DummyBattle() { //Start out the dummy pokemon playerPokemon = new DummyPokemon(); enemyPokemon = new DummyPokemon(); }