Package games.stendhal.client.entity

Examples of games.stendhal.client.entity.IEntity


  }

  @Test
  public final void plantGrower() {
    final RPObject rp = new MockRPObject("plant_grower", null);
    final IEntity en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a PlantGrower by now",
        PlantGrower.class, en.getClass());

  }
View Full Code Here


  }

  @Test
  public final void goldSource() {
    final RPObject rp = new MockRPObject("gold_source", null);
    final IEntity en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a GoldSource by now",
        UseableEntity.class, en.getClass());
  }
View Full Code Here

  }

  @Test
  public final void invisibleEntity() {
    final RPObject rp = new MockRPObject("area", null);
    final IEntity en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a InvisibleEntity by now",
        InvisibleEntity.class, en.getClass());
  }
View Full Code Here

  }

  @Test
  public final void sheepFood() {
    final RPObject rp = new MockRPObject("food", null);
    final IEntity en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a SheepFood by now",
        SheepFood.class, en.getClass());
  }
View Full Code Here

  }

  @Test
  public final void chest() {
    final RPObject rp = new MockRPObject("chest", null);
    final IEntity en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a Chest by now", Chest.class, en
        .getClass());
  }
View Full Code Here

  @Test
  public final void corpse() {
    final RPObject rp = new MockRPObject("corpse", null);

    final IEntity en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a Corpse by now", Corpse.class, en
        .getClass());
  }
View Full Code Here

  @Test
  public final void blood() {
    final RPObject rp = new MockRPObject("blood", null);

    final IEntity en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a Blood by now", Blood.class, en
        .getClass());
  }
View Full Code Here

  @Test
  public final void sign() {
    RPObject rp = new MockRPObject("sign", null);

    IEntity en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a Sign by now", Sign.class, en
        .getClass());

    rp = new MockRPObject("rented_sign", null);

    en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a Sign by now", Sign.class, en
        .getClass());
  }
View Full Code Here

  @Test
  public final void item() {
    final RPObject rp = new MockRPObject("item", null);

    final IEntity en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a Item by now", Item.class, en
        .getClass());
  }
View Full Code Here

  @Test
  public final void stackableItem() {
    RPObject rp = new MockRPObject("item", "drink");

    IEntity en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a UseableItem by now",
        UseableItem.class, en.getClass());
    rp = new MockRPObject("item", "drink");
    en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a UseableItem by now",
        UseableItem.class, en.getClass());
    rp = new MockRPObject("item", "food");
    en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a UseableItem by now",
        UseableItem.class, en.getClass());
    rp = new MockRPObject("item", "herb");
    en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a StackableItem by now",
        StackableItem.class, en.getClass());
    rp = new MockRPObject("item", "misc");
    en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a StackableItem by now",
        StackableItem.class, en.getClass());
    rp = new MockRPObject("item", "money");
    en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a StackableItem by now",
        StackableItem.class, en.getClass());
    rp = new MockRPObject("item", "ammunition");
    en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a StackableItem by now",
        StackableItem.class, en.getClass());
    rp = new MockRPObject("item", "resource");
    en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a StackableItem by now",
        StackableItem.class, en.getClass());
    rp = new MockRPObject("item", "scroll");
    en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a UseableItem by now",
        UseableItem.class, en.getClass());
    rp = new MockRPObject("item", "jewellery");
    en = EntityFactory.createEntity(rp);
    assertNotNull("entity should be created", en);
    assertEquals("we should have created a StackableItem by now",
        StackableItem.class, en.getClass());

  }
View Full Code Here

TOP

Related Classes of games.stendhal.client.entity.IEntity

Copyright © 2018 www.massapicom. 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.