Examples of Portal


Examples of com.bergerkiller.bukkit.mw.Portal

  @Override
  public void execute(SignActionEvent info) {
    if (!info.isAction(SignActionType.GROUP_ENTER, SignActionType.REDSTONE_ON) || !info.hasGroup() || !info.isPowered()) {
      return;
    }
    Portal portal = Portal.get(info.getLocation());
    if (portal == null) {
      return;
    }
    String destname = portal.getDestinationName();
    Location dest = Portal.getPortalLocation(destname, info.getGroup().getWorld().getName());
    if (dest != null) {
      //Teleport the ENTIRE train to the destination...
      Block sign = dest.getBlock();
      sign.getChunk(); //load the chunk
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.custom.Portal

    BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 200, 100, 300);
    westData.setMargins(new Margins(5, 0, 5, 5));
    westData.setCollapsible(true);

    Portal portal = new Portal(3);
    portal.setBorders(true);
    portal.setStyleAttribute("backgroundColor", "white");
    portal.setColumnWidth(0, .33);
    portal.setColumnWidth(1, .33);
    portal.setColumnWidth(2, .33);

    Portlet portlet = new Portlet();
    portlet.setHeading("Grid in a Portlet");
    configPanel(portlet);
    portlet.setLayout(new FitLayout());
    portlet.add(createGrid());
    portlet.setHeight(250);

    portal.add(portlet, 0);

    portlet = new Portlet();
    portlet.setHeading("Another Panel 1");
    configPanel(portlet);
    portlet.addText(getBogusText());
    portal.add(portlet, 0);

    portlet = new Portlet();
    portlet.setHeading("Panel 2");
    configPanel(portlet);
    portlet.addText(getBogusText());
    portal.add(portlet, 1);

    portlet = new Portlet();
    portlet.setHeading("Another Panel 2");
    configPanel(portlet);
    portlet.addText(getBogusText());
    portal.add(portlet, 1);

    portlet = new Portlet();
    portlet.setHeading("Panel 3");
    configPanel(portlet);
    portlet.addText(getBogusText());
    portal.add(portlet, 2);

    BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER);
    centerData.setMargins(new Margins(5));

    add(north, northData);
View Full Code Here

Examples of com.gwtext.client.widgets.portal.Portal

    this.contentPanel.setFrame( false );
    this.contentPanel.setBorder( false );
    this.contentPanel.setAutoScroll( false );
    this.contentPanel.setAutoHeight( true );

    Portal portal = new Portal();
    portal.setBorder( false );

    PortalColumn firstCol = new PortalColumn();
    firstCol.setPaddings( 5, 5, 5, 5 );
    PortalColumn secondCol = new PortalColumn();
    secondCol.setPaddings( 5, 5, 5, 5 );

    for (int i = 0; i < this.contactPortlets.length; i++) {
      this.contactPortlets[i] = createPortlet();
    }

    firstCol.add( this.contactPortlets[0] );
    secondCol.add( this.contactPortlets[1] );
    firstCol.add( this.contactPortlets[2] );
    secondCol.add( this.contactPortlets[3] );
    firstCol.add( this.contactPortlets[4] );
    secondCol.add( this.contactPortlets[5] );

    portal.add( firstCol, new ColumnLayoutData( 0.5 ) );
    portal.add( secondCol, new ColumnLayoutData( 0.5 ) );

    this.contentPanel.add( portal );
  }
View Full Code Here

Examples of com.liferay.portal.util.Portal

  private static final Logger logger = LoggerFactory.getLogger(RegisterPortalAction.class);

  @Override
  public void run(String[] companyIds) throws ActionException {
    Portal portal = PortalUtil.getPortal();

    try {
      ClassLoader classLoader = Portal.class.getClassLoader();
      portal = (Portal) Proxy.newProxyInstance(classLoader, new Class[] { Portal.class },
          new PortalHookImpl(portal));
View Full Code Here

Examples of com.threerings.whirled.spot.data.Portal

        // place the tile coordinates of our portals into a set for
        // efficient comparison with location coordinates
        _plocs.clear();
        for (Iterator<Portal> iter = _sscene.getPortals(); iter.hasNext(); ) {
            Portal port = iter.next();
            StageLocation loc = (StageLocation) port.loc;
            _plocs.add(new Point(MisoUtil.fullToTile(loc.x),
                                 MisoUtil.fullToTile(loc.y)));
        }
    }
View Full Code Here

Examples of games.stendhal.client.entity.Portal

   * @param list
   *            The list to populate.
   */
  @Override
  protected void buildActions(final List<String> list) {
    Portal portal = (Portal) entity;
    if ((portal != null) && !portal.isHidden()) {
      list.add(ActionType.USE.getRepresentation());

      super.buildActions(list);
      list.remove(ActionType.LOOK.getRepresentation());
    }
View Full Code Here

Examples of games.stendhal.client.entity.Portal

     
      object = new PlayerMapObject(entity);
    } else if (entity instanceof Player) {
      object = new PlayerMapObject(entity);
    } else if (entity instanceof Portal) {
      final Portal portal = (Portal) entity;

      if (!portal.isHidden()) {
        mapObjects.put(entity, new PortalMapObject(entity));
      }
    } else if (entity instanceof HousePortal) {
      object = new PortalMapObject(entity);
    } else if (entity instanceof WalkBlocker) {
View Full Code Here

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

    assertEquals("The cost of a new house in Ados is 120000 money. Also, you must pay a house tax of 1000 money,"
        + " every month. If you have a house in mind, please tell me the number now. I will check availability. "
        + "The Ados houses are numbered from 50 to 77.", getReply(npc));
   
    // add a portal to the maps so that there's something to check and sell
    Portal destination = new Portal();
    destination.setIdentifier("dest");
    SingletonRepository.getRPWorld().getRPZone(ZONE_NAME).add(destination);
    chest = new StoredChest();
    SingletonRepository.getRPWorld().getRPZone(ZONE_NAME).add(chest);
   
    housePortal = new HousePortal("ados house 50");
View Full Code Here

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

    door.setDestination(ZONE_NAME, Integer.valueOf(0));
    entranceZone.add(door);

    door.open();

    final Portal exit = new Portal();
    exit.setPosition(17, 20);
    exit.setIdentifier(Integer.valueOf(0));
    exit.setDestination(entranceZoneName, Integer.valueOf(0));
    zone.add(exit);

    final Sign sign = new Sign();
    sign.setPosition(96, 102);
    sign.setText("If the door is closed, you will have to wait a short time until the last player finishes his task.");
View Full Code Here

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

    final StendhalRPZone zone = getZone();
    if (zone.simpleCollides(this, nx, ny, this.getWidth(), this.getHeight())) {
      handleSimpleCollision(nx, ny);
      return;
    }
    final Portal p = zone.getPortal(nx, ny);
    if (p != null) {
      if (handlePortal(p)) {
        return;
      }
    }
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.