Package games.stendhal.server.entity.mapstuff.portal

Examples of games.stendhal.server.entity.mapstuff.portal.Portal


  private void createPortal(final Player admin, final List<String> args) {
    sandbox.setZone(sandbox.getZone(admin));
    int x = admin.getX();
    int y = admin.getY();

    Portal portal = instantiatePortal(args);
    setPortalName(args, portal);
    portal.setPosition(x, y);
    int destinationOffset = getDestinationOffset(args);
    portal.setDestination(args.get(destinationOffset), args.get(destinationOffset + 1));

    // add entity to game
    sandbox.add(portal);
  }
View Full Code Here


   * @param args arguments
   * @return Portal or subclass of Portal
   */
  private Portal instantiatePortal(List<String> args) {
    if (args.size() < 4) {
      return new Portal();
    } else if (args.get(3).equals("level")) {
      String rejectMessage = null;
      if (args.size() == 7) {
        rejectMessage = args.get(6);
      }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.mapstuff.portal.Portal

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.