Examples of screenToLocal()


Examples of amidst.map.Map.screenToLocal()

    Map map = playerLayer.getMap();
   
    if (player.parentFragment != null) {
      player.parentFragment.removeObject(player);
    }
    Point location = map.screenToLocal(mapViewer.lastRightClick);
    player.setPosition(location.x, location.y);
    Fragment fragment = map.getFragmentAt(location);
    fragment.addObject(player);
    player.parentFragment = fragment;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.