Examples of World


Examples of org.springframework.data.neo4j.examples.hellograph.World

    }

    @Test
    public void shouldBeSimpleToCreateNewEntities()
    {
        @SuppressWarnings("unused")
    World w = new World();
    }
View Full Code Here

Examples of org.springframework.data.neo4j.examples.hellograph.domain.World

        // the NodeBacked class is being used here as its helpful to
        // IDE's which struggle with aspectj stuff
        //
    //     return new World(name, moons).persist();

        World world = new World(name, moons);
        ((NodeBacked)world).persist();
        return world;
  }
View Full Code Here

Examples of org.terasology.world.generation.World

        return getSafeSpawnPosition(new Vector3i(ChunkConstants.SIZE_X / 2, ChunkConstants.SIZE_Y / 2, ChunkConstants.SIZE_Z / 2));
    }

    private Vector3i getSafeSpawnPosition(Vector3i spawnPos) {

        World world = worldGenerator.getWorld();
        if (world != null) {
            // try and find somewhere in this chunk a spot to land
            Region worldRegion = world.getWorldData(Region3i.createFromMinAndSize(new Vector3i(0, 0, 0), ChunkConstants.CHUNK_SIZE));
            SurfaceHeightFacet surfaceHeightFacet = worldRegion.getFacet(SurfaceHeightFacet.class);
            SeaLevelFacet seaLevelFacet = worldRegion.getFacet(SeaLevelFacet.class);
            int seaLevel = seaLevelFacet.getSeaLevel();

            for (Vector3i pos : ChunkConstants.CHUNK_REGION) {
View Full Code Here

Examples of se.llbit.chunky.world.World

    synchronized (chunky) {
    synchronized (this) {
      ChunkView mapView = chunky.getMapView();

      WorldRenderer renderer = chunky.getWorldRenderer();
      World world = chunky.getWorld();
      ChunkSelectionTracker selection = chunky.getChunkSelection();

      renderer.render(world, mapBuffer, Chunk.biomeRenderer, selection);
      mapBuffer.renderBuffered(g);

      renderer.renderPlayer(world, g, view, true);
      renderer.renderSpawn(world, g, view, true);

      // draw view rectangle
      g.setColor(Color.orange);
      g.drawRect(
          (int) FastMath.round(mapView.x0 - view.x0),
          (int) FastMath.round(mapView.z0 - view.z0),
          FastMath.round(mapView.width / (float) mapView.scale),
          FastMath.round(mapView.height / (float) mapView.scale));

      // draw North indicator
      g.setFont(font);
      g.setColor(Color.red);
      g.drawString("N", view.width/2-4, 12);

      g.setColor(Color.black);
      g.drawString(world.levelName(), 10, view.height-10);
    }
    }
  }
View Full Code Here

Examples of soc.qase.state.World

/*-------------------------------------------------------------------*/
/**  Default constructor. Prepares the DM2Parser for file loading. */
/*-------------------------------------------------------------------*/
  public DM2Parser()
  {
    world = new World(true);
    blockLength = new byte[4];   
  }
View Full Code Here

Examples of stanfordlogic.jocular.rlcpp.World

   
    public Action agent_start(Observation observation)
    {
        // Inicializa el atributo w de tipo World_ con el que se inicializaran
        // los algoritmos
        w = new World();
        w.setNumberOfActions(num_action);
        w.setNumberOfStates(observation.intArray[1]);
        // Se lee de fichero el tipo de algoritmo que se va usar y se almacena
        // en funcion_apr
        loadConfigAgent("config_agent.cfg");
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.