Examples of Pokemon


Examples of pokemon.Pokemon

    assertEquals(2.0, f.processDamageModifier(Types.WATER), .01);
  }

  @Test
  public void testProcessAttackModifierWater() {
    Pokemon p = new Pokemon();
    WaterType f = new WaterType(p);
    assertEquals(1.0, f.processDamageModifier(Types.BUG), .01);
    assertEquals(1.0, f.processDamageModifier(Types.DRAGON), .01);
    assertEquals(2.0, f.processDamageModifier(Types.ELECTRIC), .01);
    assertEquals(1.0, f.processDamageModifier(Types.FIGHTING), .01);
View Full Code Here

Examples of pokemon.Pokemon

    assertTrue(f.getPokemonType2() == null);
  }
  //Now we test for pokemon with 2 types
  @Test
  public void testGetType2(){
    Pokemon p = new Pokemon();
    GrassType g = new GrassType(p);
    PoisonType f = new PoisonType(g);
   
    assertTrue(f.getPokemonType1() == Types.POISON);
    assertTrue(f.getPokemonType2() == Types.GRASS);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.