@Test public void testEntityProcessorSystem() { TestEntityProcessorSystem system = new TestEntityProcessorSystem(); Engine engine = new Engine(new EngineConfig().addSystem(system)); Mask entities = new Mask(); int a, b, c; entities.set(a = engine.createEntity()); entities.set(b = engine.createEntity()); entities.set(c = engine.createEntity()); engine.update(); assertEquals(system.processedEntities.getMask(), entities); system.processedEntities.edit().clear(); engine.destroyEntity(b); entities.clear(b); engine.update(); assertEquals(system.processedEntities.getMask(), entities); system.processedEntities.edit().clear(); entities.set(b = engine.createEntity()); engine.update(); assertEquals(system.processedEntities.getMask(), entities); system.processedEntities.edit().clear(); engine.destroyEntity(a); engine.destroyEntity(b); engine.destroyEntity(c); entities.clear(a); entities.clear(b); entities.clear(c); }
public EntityProcessorSystem(FamilyConfig family) { this.family = family; }
EntityProcessorSystem extends EntitySystem { public EntityProcessorSystem(FamilyConfig family) { this.family = family; } }
EntityProcessorSystem extends EntitySystem { public EntityProcessorSystem(FamilyConfig family) { this.family = family; } EntityProcessorSystem(FamilyConfig family); }
EntityProcessorSystem extends EntitySystem { public EntityProcessorSystem(FamilyConfig family) { this.family = family; } EntityProcessorSystem(FamilyConfig family); @Override void setup(); final EntitySet getEntities(); final FamilyConfig getFamily(); @Override final void update(); }
EntityProcessorSystem extends EntitySystem { public EntityProcessorSystem(FamilyConfig family) { this.family = family; } EntityProcessorSystem(FamilyConfig family); @Override void setup(); final EntitySet getEntities(); final FamilyConfig getFamily(); @Override final void update();  }