Class IsoGridOcclusionData
java.lang.Object
zombie.iso.IsoGridOcclusionData
Created by ChrisWood (Tanglewood Games Limited) on 09/10/2017.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns buildings that could occlude some of the square.boolean
Returns whether built structures with no building id (orphans) could occlude some of the square.void
Reset()
static void
-
Field Details
-
MAXBUILDINGOCCLUDERS
public static final int MAXBUILDINGOCCLUDERS- See Also:
-
-
Constructor Details
-
IsoGridOcclusionData
-
-
Method Details
-
SquareChanged
public static void SquareChanged() -
Reset
public void Reset() -
getCouldBeOccludedByOrphanStructures
Returns whether built structures with no building id (orphans) could occlude some of the square. Depending on the exact shape of the structures, the square might not be hidden at all. This is used to hide player-built structures that might block our view of something in a square (at ground level) -
getBuildingsCouldBeOccluders
public ArrayList<IsoBuilding> getBuildingsCouldBeOccluders(IsoGridOcclusionData.OcclusionFilter filter) Returns buildings that could occlude some of the square. Depending on the exact shape of the building, the square might not be hidden at all. This is used to hide buildings that might block our view of something in a square (at ground level)
-