Package framework.spacial.PositionComponent

Examples of framework.spacial.PositionComponent.PositionChangedEvent


  @Override
  public void onEvent(Event e) {
    if(e != null){
      if(e.getType().equals("PositionChanged")){
        PositionChangedEvent p = (PositionChangedEvent) e;
        this.centreOfOrbit = p.getTo();
      }else if(e.getType().equals("TimePassed")){
        PositionComponent posComp = (PositionComponent) getSiblingByType(PositionComponent.class.getName());
        if(posComp != null){
          Vector2f pos = posComp.getVector();
          if(pos != null && centreOfOrbit != null && !pos.equals(centreOfOrbit)){
View Full Code Here

TOP

Related Classes of framework.spacial.PositionComponent.PositionChangedEvent

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.