Package amidst.map

Examples of amidst.map.Map


      for (MapObjectPlayer player : proj.save.getPlayers()) {
        menu.add(new PlayerMenuItem(this, player, playerLayer));
      }
    }
   
    worldMap = new Map(fragmentManager); //TODO: implement more layers
    worldMap.setZoom(curZoom);
   
    widgets.add(new FpsWidget(this).setAnchorPoint(CornerAnchorPoint.BOTTOM_LEFT));
    widgets.add(new SeedWidget(this).setAnchorPoint(CornerAnchorPoint.TOP_LEFT));
    widgets.add(new DebugWidget(this).setAnchorPoint(CornerAnchorPoint.BOTTOM_RIGHT));
View Full Code Here


    addActionListener(this);
  }
 
  @Override
  public void actionPerformed(ActionEvent event) {
    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

Related Classes of amidst.map.Map

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.