Package org.pollux3d.core.event

Examples of org.pollux3d.core.event.MapEntityClickEvent


    return stateManager;
  }

  public void onPolluxEvent(PolluxEvent event) {
    if (event instanceof MapEntityClickEvent) {
      MapEntityClickEvent clickEvent = (MapEntityClickEvent) event;
      MapEntity entity = clickEvent.getEntity();
      //added by floh -- 31/10/2011
      //play sound when clicked on markable
      polluxApp.getAudioRenderer().playSourceInstance(audio_click);
      if (entity instanceof CamTarget) {
        stateManager.getCamAnimation().setTarget((CamTarget) entity);
View Full Code Here


    } else {
      for (int i = 0; i < results.size(); i++) {   
        try {
          MapEntity me = Pollux.get().getGeometryManager().getMapEntity(results.getCollision(i).getGeometry());
          if (listener != null) {
            listener.onPolluxEvent(new MapEntityClickEvent(this.getClass().getName(), me));
          }
        } catch (Exception e) {  }
         
      }
    }
View Full Code Here

TOP

Related Classes of org.pollux3d.core.event.MapEntityClickEvent

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.