Examples of Pass

@author Portet to jme3 by user starcom "Paul Kashofer Austria" @see ImageGraphics
  • org.gnubridge.core.bidding.Pass
  • org.python.pydev.parser.jython.ast.Pass

  • Examples of com.jme3.post.Filter.Pass

        @Override
        protected void initFilter(AssetManager manager, RenderManager renderManager, ViewPort vp, int w, int h) {
            this.renderManager = renderManager;
            this.viewPort = vp;
            normalPass = new Pass();
            normalPass.init(renderManager.getRenderer(), w, h, Format.RGBA8, Format.Depth);
            material = new Material(manager, "Common/MatDefs/Post/CartoonEdge.j3md");
            material.setFloat("EdgeWidth", edgeWidth);
            material.setFloat("EdgeIntensity", edgeIntensity);
            material.setFloat("NormalThreshold", normalThreshold);
    View Full Code Here

    Examples of com.jme3.post.Filter.Pass

            this.viewPort = vp;
            int screenWidth = w;
            int screenHeight = h;
            postRenderPasses = new ArrayList<Pass>();

            normalPass = new Pass();
            normalPass.init(renderManager.getRenderer(), (int) (screenWidth / downSampleFactor), (int) (screenHeight / downSampleFactor), Format.RGBA8, Format.Depth);


            frustumNearFar = new Vector2f();

            float farY = (vp.getCamera().getFrustumTop() / vp.getCamera().getFrustumNear()) * vp.getCamera().getFrustumFar();
            float farX = farY * ((float) screenWidth / (float) screenHeight);
            frustumCorner = new Vector3f(farX, farY, vp.getCamera().getFrustumFar());
            frustumNearFar.x = vp.getCamera().getFrustumNear();
            frustumNearFar.y = vp.getCamera().getFrustumFar();





            //ssao Pass
            ssaoMat = new Material(manager, "Common/MatDefs/SSAO/ssao.j3md");
            ssaoMat.setTexture("Normals", normalPass.getRenderedTexture());
            Texture random = manager.loadTexture("Common/MatDefs/SSAO/Textures/random.png");
            random.setWrap(Texture.WrapMode.Repeat);
            ssaoMat.setTexture("RandomMap", random);

            ssaoPass = new Pass() {

                @Override
                public boolean requiresDepthAsTexture() {
                    return true;
                }
    View Full Code Here

    Examples of org.gnubridge.core.bidding.Pass

        super(null, null);
      }

      @Override
      protected Bid prepareBid() {
        return new Pass();
      }
    View Full Code Here

    Examples of org.gnubridge.core.bidding.Pass

        SwingUtilities.invokeAndWait(new Runnable() {
          public void run() {
            Deal.setPreInitializedGame(constructGame());
            MainController controller = new MainController();
            controller.getBiddingController().getAuction().bid(new Bid(1, NoTrump.i()));
            controller.getBiddingController().getAuction().bid(new Pass());
            controller.getBiddingController().getAuction().bid(new Pass());
            controller.getBiddingController().getAuction().bid(new Pass());
            controller.getBiddingController().playGame();
          }

        });
    View Full Code Here

    Examples of org.gnubridge.core.bidding.Pass

          while (!auction.biddingFinished()) {

            Bid humanBid = humanAgent.getBid();
            System.out.println("  human about to bid: " + humanBid);
            if (new Pass().equals(humanBid)) {
              mainController.getBiddingController().placeBid(-1, "PASS");
            } else {
              mainController.getBiddingController().placeBid(humanBid.getValue(), humanBid.getTrump().toString());
            }
            System.out.println("  Calls after human bid: " + auction.getCalls());
    View Full Code Here

    Examples of org.gnubridge.core.bidding.Pass

        if (hand.getSuitLength(Spades.i()) < hand.getSuitLength(Hearts.i())) {
          longer = Hearts.i();
        }
        if (hand.getSuitLength(longer) < 5) {
          if (pc.getHighCardPoints() <= 7) {
            result = new Pass();
          } else if (pc.getHighCardPoints() <= 9) {
            result = new Bid(2, NoTrump.i());
          } else if (pc.getHighCardPoints() <= 14) {
            result = new Bid(3, NoTrump.i());
          }
    View Full Code Here

    Examples of org.gnubridge.core.bidding.Pass

    public class Respond1ColorWithNTTest extends TestCase {
      public void test1NTIfHave6Points() {
        Auctioneer a = new Auctioneer(West.i());
        a.bid(new Bid(1, Hearts.i()));
        a.bid(new Pass());
        Respond1ColorWithNT rule = new Respond1ColorWithNT(a, new Hand("K,3,2", "5,4,3", "K,9,8,6", "5,4,3"));

        assertEquals(new Bid(1, NoTrump.i()), rule.getBid());
      }
    View Full Code Here

    Examples of org.gnubridge.core.bidding.Pass

      }

      public void test1NTIfHave10Points() {
        Auctioneer a = new Auctioneer(West.i());
        a.bid(new Bid(1, Clubs.i()));
        a.bid(new Pass());
        Respond1ColorWithNT rule = new Respond1ColorWithNT(a, new Hand("K,3,2", "K,J,4,3", "K,9,8,6", "5,4,3"));

        assertEquals(new Bid(1, NoTrump.i()), rule.getBid());
      }
    View Full Code Here

    Examples of org.gnubridge.core.bidding.Pass

      }

      public void testdoesNotApplyAt11Points() {
        Auctioneer a = new Auctioneer(West.i());
        a.bid(new Bid(1, Clubs.i()));
        a.bid(new Pass());
        Respond1ColorWithNT rule = new Respond1ColorWithNT(a, new Hand("K,J,3,2", "K,J,4,3", "K,9,8,6", "5,4,3"));

        assertEquals(null, rule.getBid());
      }
    View Full Code Here

    Examples of org.gnubridge.core.bidding.Pass

      }

      public void testDoesNotApplyBelow6() {
        Auctioneer a = new Auctioneer(West.i());
        a.bid(new Bid(1, Diamonds.i()));
        a.bid(new Pass());
        Respond1ColorWithNT rule = new Respond1ColorWithNT(a, new Hand("K,3,2", "5,4,3", "Q,9,8,6", "5,4,3"));

        assertEquals(null, rule.getBid());
      }
    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.