Package framework.component.filter

Examples of framework.component.filter.ComponentFilter


  public CollisionComponent(CollisionMask mask){
    super();
    this.mask = mask;
    RelativeComponentPath posPath = new RelativeComponentPath(PositionComponent.class.getName(), this, 1, new int[]{0});
    ComponentFilter posFilter = new ComponentPathFilter(posPath);
    EventSystem.getInstance().registerEventListener(this, "PositionChanged", new EventSenderComponentFilter(posFilter));

    RelativeComponentPath orientPath = new RelativeComponentPath(OrientationComponent.class.getName(), this, 1, new int[]{0});
    ComponentFilter orientFilter = new ComponentPathFilter(orientPath);
    EventSystem.getInstance().registerEventListener(this, "OrientationChanged", new EventSenderComponentFilter(orientFilter));
  }
View Full Code Here


    }

    setOffsetFromOrigin(offsetFromOrigin);

    RelativeComponentPath orientPath = new RelativeComponentPath(OrientationComponent.class.getName(), this, 1, new int[]{0});
    ComponentFilter orientFilter = new ComponentPathFilter(orientPath);
    EventSystem.getInstance().registerEventListener(this, "OrientationChanged", new EventSenderComponentFilter(orientFilter));
  }
View Full Code Here

TOP

Related Classes of framework.component.filter.ComponentFilter

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.