Package framework.component.list

Examples of framework.component.list.MultiTypeComponentList


  private void checkForCollisions(PositionComponent pos) {
    if(pos != null && pos.getVector() != null && this.mask != null){

      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){
View Full Code Here

TOP

Related Classes of framework.component.list.MultiTypeComponentList

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.