- update test data and Test names for TerrainGrid
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8694 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
b087c3e843
commit
796f912ea1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -22,13 +22,13 @@ import com.jme3.terrain.geomipmap.TerrainQuad;
|
||||
import com.jme3.terrain.geomipmap.lodcalc.DistanceLodCalculator;
|
||||
import java.io.File;
|
||||
|
||||
public class TerrainQuadGridSerializationTest extends SimpleApplication {
|
||||
public class TerrainGridSerializationTest extends SimpleApplication {
|
||||
|
||||
private TerrainGrid terrain;
|
||||
private boolean usePhysics = true;
|
||||
|
||||
public static void main(final String[] args) {
|
||||
TerrainQuadGridSerializationTest app = new TerrainQuadGridSerializationTest();
|
||||
TerrainGridSerializationTest app = new TerrainGridSerializationTest();
|
||||
app.start();
|
||||
}
|
||||
private CharacterControl player3;
|
||||
@ -124,30 +124,30 @@ public class TerrainQuadGridSerializationTest extends SimpleApplication {
|
||||
public void onAction(final String name, final boolean keyPressed, final float tpf) {
|
||||
if (name.equals("Lefts")) {
|
||||
if (keyPressed) {
|
||||
TerrainQuadGridSerializationTest.this.left = true;
|
||||
TerrainGridSerializationTest.this.left = true;
|
||||
} else {
|
||||
TerrainQuadGridSerializationTest.this.left = false;
|
||||
TerrainGridSerializationTest.this.left = false;
|
||||
}
|
||||
} else if (name.equals("Rights")) {
|
||||
if (keyPressed) {
|
||||
TerrainQuadGridSerializationTest.this.right = true;
|
||||
TerrainGridSerializationTest.this.right = true;
|
||||
} else {
|
||||
TerrainQuadGridSerializationTest.this.right = false;
|
||||
TerrainGridSerializationTest.this.right = false;
|
||||
}
|
||||
} else if (name.equals("Ups")) {
|
||||
if (keyPressed) {
|
||||
TerrainQuadGridSerializationTest.this.up = true;
|
||||
TerrainGridSerializationTest.this.up = true;
|
||||
} else {
|
||||
TerrainQuadGridSerializationTest.this.up = false;
|
||||
TerrainGridSerializationTest.this.up = false;
|
||||
}
|
||||
} else if (name.equals("Downs")) {
|
||||
if (keyPressed) {
|
||||
TerrainQuadGridSerializationTest.this.down = true;
|
||||
TerrainGridSerializationTest.this.down = true;
|
||||
} else {
|
||||
TerrainQuadGridSerializationTest.this.down = false;
|
||||
TerrainGridSerializationTest.this.down = false;
|
||||
}
|
||||
} else if (name.equals("Jumps")) {
|
||||
TerrainQuadGridSerializationTest.this.player3.jump();
|
||||
TerrainGridSerializationTest.this.player3.jump();
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -29,7 +29,7 @@ import java.io.IOException;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
public class TerrainQuadGridTest extends SimpleApplication {
|
||||
public class TerrainGridTileLoaderTest extends SimpleApplication {
|
||||
|
||||
private Material mat_terrain;
|
||||
private TerrainGrid terrain;
|
||||
@ -40,7 +40,7 @@ public class TerrainQuadGridTest extends SimpleApplication {
|
||||
private boolean physicsAdded = false;
|
||||
|
||||
public static void main(final String[] args) {
|
||||
TerrainQuadGridTest app = new TerrainQuadGridTest();
|
||||
TerrainGridTileLoaderTest app = new TerrainGridTileLoaderTest();
|
||||
app.start();
|
||||
}
|
||||
private CharacterControl player3;
|
||||
@ -185,30 +185,30 @@ public class TerrainQuadGridTest extends SimpleApplication {
|
||||
public void onAction(final String name, final boolean keyPressed, final float tpf) {
|
||||
if (name.equals("Lefts")) {
|
||||
if (keyPressed) {
|
||||
TerrainQuadGridTest.this.left = true;
|
||||
TerrainGridTileLoaderTest.this.left = true;
|
||||
} else {
|
||||
TerrainQuadGridTest.this.left = false;
|
||||
TerrainGridTileLoaderTest.this.left = false;
|
||||
}
|
||||
} else if (name.equals("Rights")) {
|
||||
if (keyPressed) {
|
||||
TerrainQuadGridTest.this.right = true;
|
||||
TerrainGridTileLoaderTest.this.right = true;
|
||||
} else {
|
||||
TerrainQuadGridTest.this.right = false;
|
||||
TerrainGridTileLoaderTest.this.right = false;
|
||||
}
|
||||
} else if (name.equals("Ups")) {
|
||||
if (keyPressed) {
|
||||
TerrainQuadGridTest.this.up = true;
|
||||
TerrainGridTileLoaderTest.this.up = true;
|
||||
} else {
|
||||
TerrainQuadGridTest.this.up = false;
|
||||
TerrainGridTileLoaderTest.this.up = false;
|
||||
}
|
||||
} else if (name.equals("Downs")) {
|
||||
if (keyPressed) {
|
||||
TerrainQuadGridTest.this.down = true;
|
||||
TerrainGridTileLoaderTest.this.down = true;
|
||||
} else {
|
||||
TerrainQuadGridTest.this.down = false;
|
||||
TerrainGridTileLoaderTest.this.down = false;
|
||||
}
|
||||
} else if (name.equals("Jumps")) {
|
||||
TerrainQuadGridTest.this.player3.jump();
|
||||
TerrainGridTileLoaderTest.this.player3.jump();
|
||||
}
|
||||
}
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user