- update test data and Test names for TerrainGrid

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8694 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent b087c3e843
commit 796f912ea1
  1. BIN
      engine/src/test-data/TerrainGrid/TerrainGrid.j3o
  2. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_-1.j3o
  3. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_-2.j3o
  4. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_-3.j3o
  5. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_0.j3o
  6. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_1.j3o
  7. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_2.j3o
  8. BIN
      engine/src/test-data/TerrainGrid/testgrid_-1_0_3.j3o
  9. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_-1.j3o
  10. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_-2.j3o
  11. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_0.j3o
  12. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_1.j3o
  13. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_2.j3o
  14. BIN
      engine/src/test-data/TerrainGrid/testgrid_-2_0_3.j3o
  15. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_-1.j3o
  16. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_-2.j3o
  17. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_-3.j3o
  18. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_-4.j3o
  19. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_-5.j3o
  20. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_0.j3o
  21. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_1.j3o
  22. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_2.j3o
  23. BIN
      engine/src/test-data/TerrainGrid/testgrid_0_0_3.j3o
  24. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_-1.j3o
  25. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_-2.j3o
  26. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_-3.j3o
  27. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_-4.j3o
  28. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_-5.j3o
  29. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_2.j3o
  30. BIN
      engine/src/test-data/TerrainGrid/testgrid_1_0_3.j3o
  31. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_-1.j3o
  32. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_-2.j3o
  33. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_-3.j3o
  34. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_-4.j3o
  35. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_-5.j3o
  36. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_0.j3o
  37. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_1.j3o
  38. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_2.j3o
  39. BIN
      engine/src/test-data/TerrainGrid/testgrid_2_0_3.j3o
  40. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_-1.j3o
  41. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_-2.j3o
  42. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_-3.j3o
  43. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_-4.j3o
  44. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_-5.j3o
  45. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_0.j3o
  46. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_1.j3o
  47. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_2.j3o
  48. BIN
      engine/src/test-data/TerrainGrid/testgrid_3_0_3.j3o
  49. BIN
      engine/src/test-data/TerrainGrid/testgrid_4_0_-2.j3o
  50. BIN
      engine/src/test-data/TerrainGrid/testgrid_4_0_-3.j3o
  51. BIN
      engine/src/test-data/TerrainGrid/testgrid_4_0_-4.j3o
  52. 22
      engine/src/test/jme3test/terrain/TerrainGridSerializationTest.java
  53. 22
      engine/src/test/jme3test/terrain/TerrainGridTileLoaderTest.java

@ -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…
Cancel
Save