Interface ObjectSpace

  • All Known Implementing Classes:
    DenseObjectSpace, MultiObjectSpace, SparseObjectSpace

    public interface ObjectSpace
    Author:
    michele To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
    • Method Detail

      • getXSize

        int getXSize()
      • getYSize

        int getYSize()
      • boundX

        int boundX​(int x)
      • boundY

        int boundY​(int y)
      • reflectX

        int reflectX​(int x)
      • reflectY

        int reflectY​(int y)
      • torusX

        int torusX​(int x)
      • torusY

        int torusY​(int y)
      • countObjectsAt

        int countObjectsAt​(int x,
                           int y)
      • addGridPosition

        boolean addGridPosition​(SpacePosition position)
      • removeGridPosition

        boolean removeGridPosition​(SpacePosition position)
      • moveGridPosition

        boolean moveGridPosition​(SpacePosition object,
                                 int destinationX,
                                 int destinationY)
      • get

        java.lang.Object get​(int x,
                             int y)
      • set

        void set​(int x,
                 int y,
                 java.lang.Object obj)