Examples of deleteFromWorld()


Examples of com.artemis.Entity.deleteFromWorld()

   
    Entity e = world.createEntity();
    PooledPosition c = createPosition(e);
   
    world.process();
    e.deleteFromWorld();
    world.process();
   
    Entity e2 = world.createEntity();
    PooledPosition c2 = createPosition(e);
   
View Full Code Here

Examples of com.artemis.Entity.deleteFromWorld()

   
    c.vec2.x = 2;
    c.vec2.y = 3;
   
    world.process();
    e.deleteFromWorld();
    world.process();
   
    Entity e2 = world.createEntity();
    PooledObjectPosition c2 = e2.createComponent(PooledObjectPosition.class);
    assertEquals(2, c.vec2.x, 0.0001f);
View Full Code Here

Examples of com.artemis.Entity.deleteFromWorld()

    Entity entity = world.createEntity();
    gm.add(entity, GROUPIE);

    assertEquals(1, gm.getEntities(GROUPIE).size());

    entity.deleteFromWorld();
    world.process();
    assertEquals(0, gm.getEntities(GROUPIE).size());
    assertFalse(gm.isInAnyGroup(entity));
  }
 
View Full Code Here

Examples of com.artemis.Entity.deleteFromWorld()

    gm.add(entity, GROUPIE2);
   
    assertEquals(1, gm.getEntities(GROUPIE).size());
    assertEquals(1, gm.getEntities(GROUPIE2).size());
   
    entity.deleteFromWorld();
    world.process();
   
    assertEquals(0, gm.getEntities(GROUPIE).size());
    assertEquals(0, gm.getEntities(GROUPIE2).size());
    assertFalse(gm.isInAnyGroup(entity));
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.