Skip to content

Commit

Permalink
Minor code and javadoc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
msteiger committed Oct 29, 2015
1 parent f802a7f commit 459c498
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
16 changes: 0 additions & 16 deletions src/main/java/org/terasology/cities/CityWorldGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,13 @@
import org.terasology.registry.In;
import org.terasology.world.block.BlockManager;
import org.terasology.world.generation.BaseFacetedWorldGenerator;
import org.terasology.world.generation.World;
import org.terasology.world.generation.WorldBuilder;
import org.terasology.world.generator.RegisterWorldGenerator;
import org.terasology.world.generator.plugin.WorldGeneratorPluginLibrary;

@RegisterWorldGenerator(id = "city", displayName = "City World")
public class CityWorldGenerator extends BaseFacetedWorldGenerator {

World world;

private final Spawner spawner = new CitySpawner();

@In
Expand All @@ -84,19 +81,6 @@ public CityWorldGenerator(SimpleUri uri) {
super(uri);
}

@Override
public void initialize() {
super.initialize();

// noiseMap = new NoiseHeightMap();
// heightMap = HeightMaps.symmetric(noiseMap, Symmetries.alongNegativeDiagonal());

// register(new HeightMapTerrainGenerator(heightMap));
// register(new BoundaryGenerator(heightMap));
// register(new CityTerrainGenerator(heightMap));
// register(new FloraGeneratorFast(heightMap));
}

@Override
public Vector3f getSpawnPosition(EntityRef entity) {
return spawner.getSpawnPosition(getWorld(), entity);
Expand Down
10 changes: 4 additions & 6 deletions src/main/java/org/terasology/cities/bldg/gen/Turtle.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import org.terasology.cities.common.Edges;
import org.terasology.commonworld.Orientation;
import org.terasology.math.geom.BaseVector2f;
import org.terasology.math.geom.BaseVector2i;
import org.terasology.math.geom.ImmutableVector2i;
import org.terasology.math.geom.Rect2i;
Expand All @@ -28,8 +27,7 @@
* A turtle has a position and direction. It can be used to define 2D shapes in a relative
* coordinate system.
*/
public class Turtle
{
public class Turtle {
private Orientation orient;
private Vector2i pos;

Expand All @@ -56,11 +54,11 @@ public Turtle rotate(int degrees) {

/**
* Sets the position independent of current position/location
* @param pos the new coordinates
* @param newPos the new coordinates
* @return this
*/
public Turtle setPosition(BaseVector2i pos) {
return setPosition(pos.getX(), pos.getY());
public Turtle setPosition(BaseVector2i newPos) {
return setPosition(newPos.getX(), newPos.getY());
}

/**
Expand Down

0 comments on commit 459c498

Please sign in to comment.