Scene
This commit is contained in:
1 parent
fd8c6757cd
commit
a1500a7cb1
10 files changed
+995
-868
No files matched your search
@@ -6,10 +6,13 @@ public class SceneTile extends DoublyLinkedList.Node {
|
||||
|
||||
public final int x;
|
||||
public final int z;
|
||||
public final int level;
|
||||
/**
|
||||
* Which level to sample when testing against this tile for occlusion.
|
||||
*/
|
||||
public final int occludeLevel;
|
||||
public final SceneLoc[] locs = new SceneLoc[5];
|
||||
public final int[] locSpan = new int[5];
|
||||
public int dataLevel;
|
||||
public int level;
|
||||
public SceneTileUnderlay underlay;
|
||||
public SceneTileOverlay overlay;
|
||||
public SceneWall wall;
|
||||
@@ -17,23 +20,32 @@ public class SceneTile extends DoublyLinkedList.Node {
|
||||
public SceneGroundDecoration groundDecoration;
|
||||
public SceneObjStack objStack;
|
||||
public int locCount;
|
||||
public int spans;
|
||||
/**
|
||||
* When larger than 1x1 locs reside on a tile, we have to know which part of it might be on this tile to properly
|
||||
* cull it.
|
||||
* <p>
|
||||
* 0b0001 = x > loc.minSceneTileX
|
||||
* 0b0010 = z < loc.maxSceneTileZ
|
||||
* 0b0100 = x < loc.maxSceneTileX
|
||||
* 0b1000 = z > loc.minSceneTileZ
|
||||
*/
|
||||
public int locSpans;
|
||||
/**
|
||||
* Used as a short circuit to prevent drawing tiles above the top level. Mostly applies to lowmem.
|
||||
* @see Scene#draw(int, int, int, int, int, int)
|
||||
*/
|
||||
public int drawLevel;
|
||||
public boolean drawable;
|
||||
public boolean visible;
|
||||
public boolean update;
|
||||
public boolean containsLocs;
|
||||
public int anInt1325;
|
||||
public int anInt1326;
|
||||
public int anInt1327;
|
||||
public int anInt1328;
|
||||
public int checkLocSpans;
|
||||
public int blockLocSpans;
|
||||
public int inverseBlockLocSpans;
|
||||
public int allowWallTypes;
|
||||
public SceneTile bridge;
|
||||
|
||||
public SceneTile(int level, int x, int z) {
|
||||
this.level = dataLevel = level;
|
||||
this.occludeLevel = this.level = level;
|
||||
this.x = x;
|
||||
this.z = z;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user