Package framework.component.filter

Examples of framework.component.filter.SpacialFilter


      checkOldCollisionsAreStillHappening(pos.getVector());

      MultiTypeComponentList allComps = ComponentSystem.getInstance().getAllComponents();
      SingleTypeComponentList allCollisComps = allComps.getComponentsOfType(CollisionComponent.class.getName());
      if(allCollisComps != null){
        SpacialFilter filter = new SpacialFilter(pos.getVector(), getMask());
        Collection<Component> allColliding = allCollisComps.getComponents(filter);
        if(allColliding != null){
          for(Component comp:allColliding){
            if(!comp.equals(this)){
              CollisionComponent c = (CollisionComponent) comp;
View Full Code Here


      EventSystem.getInstance().pushEvent(new CollisionStoppedEvent(c, this));
    }
  }

  private boolean isCollision(Vector2f thisOrigin, CollisionComponent otherComp){
    SpacialFilter filter = new SpacialFilter(thisOrigin, this.mask);
    return filter.isValidComponent(otherComp);
  }
View Full Code Here

TOP

Related Classes of framework.component.filter.SpacialFilter

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.