Package framework.component.path

Examples of framework.component.path.RelativeComponentPath


  private HashSet<CollisionComponent> inContactWith = new HashSet<CollisionComponent>();

  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


import framework.component.Component;
import framework.component.path.RelativeComponentPath;

public class SiblingFilter extends ComponentPathFilter {
  public SiblingFilter(Component from, String type, int slot) {
    super(new RelativeComponentPath(type,from,1,new int[]{slot}));
  }
View Full Code Here

import framework.component.filter.ComponentPathFilter;
import framework.component.path.RelativeComponentPath;

public class SiblingFilter extends ComponentPathFilter {
  public SiblingFilter(Component from, String type, int slot) {
    super(new RelativeComponentPath(type,from,1,new int[]{slot}));
  }
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.path.RelativeComponentPath

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.