Package com.artemis

Examples of com.artemis.World.process()


      createEntity(world);
   
    Entity last = createEntity(world);
    last.createComponent(SimpleComponent.class).set(420);
   
    world.process();
   
    SimpleComponent component = last.getComponent(SimpleComponent.class);
    assertNotNull(component);
    assertEquals(420, component.get());
    assertCapacity(128 * 8, component);
View Full Code Here


    world.initialize();
   
    Assert.assertNull(
        ProfiledSystem.class.getAnnotation(Profile.class));
   
    world.process();
    world.process();
   
    SimpleProfiler simpleProfiler = SimpleProfiler.lastInstance;
    Assert.assertNotNull(simpleProfiler);
   
View Full Code Here

   
    Assert.assertNull(
        ProfiledSystem.class.getAnnotation(Profile.class));
   
    world.process();
    world.process();
   
    SimpleProfiler simpleProfiler = SimpleProfiler.lastInstance;
    Assert.assertNotNull(simpleProfiler);
   
    simpleProfiler.validate();
View Full Code Here

    simpleProfiler.validate();
   
    Assert.assertEquals(2, simpleProfiler.startCount);
    Assert.assertEquals(2, simpleProfiler.stopCount);
   
    world.process();
    Assert.assertEquals(3, simpleProfiler.startCount);
    Assert.assertEquals(3, simpleProfiler.stopCount);
  }
 
  @Test
View Full Code Here

    world.initialize();
   
    Assert.assertNull(
        ProfiledSystemB.class.getAnnotation(Profile.class));
   
    world.process();
   
    SimpleProfiler simpleProfiler = SimpleProfiler.lastInstance;
    Assert.assertNotNull(simpleProfiler);
   
    simpleProfiler.validate();
View Full Code Here

    simpleProfiler.validate();
   
    Assert.assertEquals(1, simpleProfiler.startCount);
    Assert.assertEquals(1, simpleProfiler.stopCount);
   
    world.process();
    Assert.assertEquals(2, simpleProfiler.startCount);
    Assert.assertEquals(2, simpleProfiler.stopCount);
  }
}
View Full Code Here

    World world = new World();
    IntervalSystem es = world.setSystem(new IntervalSystem());
    world.initialize();
   
    world.delta = 1.1f;
    world.process();
    assertEquals(1.1, es.getIntervalDelta(), ACC);
   
    world.delta = 0.95f;
    world.process();
    assertEquals(0.95, es.getIntervalDelta(), ACC);
View Full Code Here

    world.delta = 1.1f;
    world.process();
    assertEquals(1.1, es.getIntervalDelta(), ACC);
   
    world.delta = 0.95f;
    world.process();
    assertEquals(0.95, es.getIntervalDelta(), ACC);
  }

  private static class IntervalSystem extends IntervalEntitySystem {
View Full Code Here

   
    assertNotNull(entity.getUuid());
    UUID uuid1 = entity.getUuid();
    world.deleteEntity(entity);
   
    world.process();
    world.process();
   
    entity = world.createEntity();
   
    assertNotNull(entity.getUuid());
View Full Code Here

    assertNotNull(entity.getUuid());
    UUID uuid1 = entity.getUuid();
    world.deleteEntity(entity);
   
    world.process();
    world.process();
   
    entity = world.createEntity();
   
    assertNotNull(entity.getUuid());
    UUID uuid2 = entity.getUuid();
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.