Package com.badlogic.ashley.core

Examples of com.badlogic.ashley.core.Family$Builder


    @Test
    @SuppressWarnings("unchecked")
    public void shouldIterateEntitiesWithCorrectFamily(){
        final Engine engine = new Engine();

        final Family family = Family.all(ComponentA.class, ComponentB.class).get();
        final IteratingSystemMock system = new IteratingSystemMock(family);
        final Entity e = new Entity();

        engine.addSystem(system);
        engine.addEntity(e);
View Full Code Here


  @Test
  @SuppressWarnings("unchecked")
  public void shouldIterateEntitiesWithCorrectFamily(){
    final Engine engine = new Engine();

    final Family family = Family.getFor(OrderComponent.class, ComponentB.class);
    final SortedIteratingSystemMock system = new SortedIteratingSystemMock(family);
    final Entity e = new Entity();

    engine.addSystem(system);
    engine.addEntity(e);
View Full Code Here

 
  @Test
  public void entityOrder(){
    Engine engine = new Engine();
   
    final Family family = Family.getFor(OrderComponent.class);
    final SortedIteratingSystemMock system = new SortedIteratingSystemMock(family);
    engine.addSystem(system);
   
    Entity a = createOrderEntity("A", 0);
    Entity b = createOrderEntity("B", 1);
View Full Code Here

TOP

Related Classes of com.badlogic.ashley.core.Family$Builder

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.