Class AStarPathMap

java.lang.Object
zombie.ai.astar.AStarPathMap

public class AStarPathMap
extends java.lang.Object
  • Field Summary

    Fields
    Modifier and Type Field Description
    TileBasedMap map  
  • Constructor Summary

    Constructors
    Constructor Description
    AStarPathMap​(TileBasedMap tileBasedMap)  
  • Method Summary

    Modifier and Type Method Description
    void DoPrecalcFile​(AStarPathFinder aStarPathFinder)  
    int getFreeIndex​(IsoGameCharacter gameCharacter)  
    float getMovementCost​(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)  
    IsoGridSquare getNode​(int int1, int int2, int int3)  
    protected boolean isValidLocation​(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9)  
    void LoadPrecalcFlle()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AStarPathMap

      public AStarPathMap​(TileBasedMap tileBasedMap)
  • Method Details

    • LoadPrecalcFlle

      public void LoadPrecalcFlle() throws java.io.FileNotFoundException, java.io.IOException
      Throws:
      java.io.FileNotFoundException
      java.io.IOException
    • DoPrecalcFile

      public void DoPrecalcFile​(AStarPathFinder aStarPathFinder)
    • getFreeIndex

      public int getFreeIndex​(IsoGameCharacter gameCharacter)
    • getMovementCost

      public float getMovementCost​(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6)
    • isValidLocation

      protected boolean isValidLocation​(Mover mover, int int1, int int2, int int3, int int4, int int5, int int6, int int7, int int8, int int9)
    • getNode

      public IsoGridSquare getNode​(int int1, int int2, int int3)