Class Grid


  • public class Grid
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Grid​(int width, int height)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHeight()  
      int getWidth()  
      boolean isWalkable​(int x, int y)  
      void setWalkable​(int x, int y, boolean flag)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Grid

        public Grid​(int width,
                    int height)
    • Method Detail

      • setWalkable

        public void setWalkable​(int x,
                                int y,
                                boolean flag)
      • isWalkable

        public boolean isWalkable​(int x,
                                  int y)
      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()