changed TerrainGrid methods to protected access
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7842 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
a5511a19dc
commit
668eaf9cfb
@ -56,22 +56,21 @@ import java.util.concurrent.Callable;
|
|||||||
*/
|
*/
|
||||||
public class TerrainGrid extends TerrainQuad {
|
public class TerrainGrid extends TerrainQuad {
|
||||||
|
|
||||||
private static final Logger log = Logger.getLogger(TerrainGrid.class.getCanonicalName());
|
protected static final Logger log = Logger.getLogger(TerrainGrid.class.getCanonicalName());
|
||||||
private Vector3f currentCell;
|
protected Vector3f currentCell;
|
||||||
private int quarterSize;
|
protected int quarterSize;
|
||||||
private int quadSize;
|
protected int quadSize;
|
||||||
private HeightMapGrid heightMapGrid;
|
protected HeightMapGrid heightMapGrid;
|
||||||
//private Vector3f[] quadOrigins;
|
protected Vector3f[] quadIndex;
|
||||||
private Vector3f[] quadIndex;
|
protected Map<String, TerrainGridListener> listeners = new HashMap<String, TerrainGridListener>();
|
||||||
private Map<String, TerrainGridListener> listeners = new HashMap<String, TerrainGridListener>();
|
protected Material material;
|
||||||
private Material material;
|
protected LRUCache<Vector3f, TerrainQuad> cache = new LRUCache<Vector3f, TerrainQuad>(16);
|
||||||
private LRUCache<Vector3f, TerrainQuad> cache = new LRUCache<Vector3f, TerrainQuad>(16);
|
protected RigidBodyControl[] quadControls;
|
||||||
private RigidBodyControl[] quadControls;
|
protected PhysicsSpace space;
|
||||||
private PhysicsSpace space;
|
|
||||||
|
|
||||||
private class UpdateQuadCache implements Runnable {
|
protected class UpdateQuadCache implements Runnable {
|
||||||
|
|
||||||
private final Vector3f location;
|
protected final Vector3f location;
|
||||||
|
|
||||||
public UpdateQuadCache(Vector3f location) {
|
public UpdateQuadCache(Vector3f location) {
|
||||||
this.location = location;
|
this.location = location;
|
||||||
@ -116,11 +115,11 @@ public class TerrainGrid extends TerrainQuad {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isCenter(int quadIndex) {
|
protected boolean isCenter(int quadIndex) {
|
||||||
return quadIndex == 9 || quadIndex == 5 || quadIndex == 10 || quadIndex == 6;
|
return quadIndex == 9 || quadIndex == 5 || quadIndex == 10 || quadIndex == 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getQuadrant(int quadIndex) {
|
protected int getQuadrant(int quadIndex) {
|
||||||
if (quadIndex == 9) {
|
if (quadIndex == 9) {
|
||||||
return 1;
|
return 1;
|
||||||
} else if (quadIndex == 5) {
|
} else if (quadIndex == 5) {
|
||||||
@ -242,7 +241,7 @@ public class TerrainGrid extends TerrainQuad {
|
|||||||
updateModelBound();
|
updateModelBound();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateChildrens(Vector3f cam) {
|
protected void updateChildrens(Vector3f cam) {
|
||||||
// ---------------------------------------------------
|
// ---------------------------------------------------
|
||||||
// LRU cache is used, so elements that need to remain
|
// LRU cache is used, so elements that need to remain
|
||||||
// should be touched.
|
// should be touched.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user