Package com.artemis

Examples of com.artemis.World.initialize()


 
  @Test
  public void uuid_updates_work() {
    World world = new World();
    UuidEntityManager uuidManager = world.setManager(new UuidEntityManager());
    world.initialize();
   
    Entity entity = world.createEntity();
   
    UUID uuid0 = entity.getUuid();
    Assert.assertNotNull(uuid0);
View Full Code Here


 
  @Test
  public void explicit_uuids() {
    World world = new World();
    world.setManager(new UuidEntityManager());
    world.initialize();
   
    UUID[] uuids = new UUID[3];
    uuids[0] = UUID.randomUUID();
    uuids[1] = UUID.randomUUID();
    uuids[2] = UUID.randomUUID();
View Full Code Here

    world.setSystem(new MovementSystem());
    world.setSystem(new StateSystem());
    world.setSystem(new CollisionSystem());
    world.setSystem(new RemovalSystem());
   
    world.initialize();
   
    for (int i = 0; i < numEntities; ++i) {
      Entity entity = world.createEntity();
     
      if (Constants.shouldHaveComponent(ComponentType.POSITION, i)) {
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.