Package zombie.iso

Class IsoGridOcclusionData

java.lang.Object
zombie.iso.IsoGridOcclusionData

public class IsoGridOcclusionData extends Object
Created by ChrisWood (Tanglewood Games Limited) on 09/10/2017.
  • Field Details

  • Constructor Details

    • IsoGridOcclusionData

      public IsoGridOcclusionData(IsoGridSquare inOwnerSquare)
  • Method Details

    • SquareChanged

      public static void SquareChanged()
    • Reset

      public void Reset()
    • getCouldBeOccludedByOrphanStructures

      public boolean getCouldBeOccludedByOrphanStructures(IsoGridOcclusionData.OcclusionFilter filter)
      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)