Class BlockedMatrix<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>


  • public class BlockedMatrix<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.lang.Object
    Determines whether a map square is blocked.
    • Constructor Summary

      Constructors 
      Constructor Description
      BlockedMatrix​(@NotNull MapModel<G,​A,​R> mapModel)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isBlocked​(int x, int y)
      Returns whether a given location is blocked.
      • Methods inherited from class java.lang.Object

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

      • BlockedMatrix

        public BlockedMatrix​(@NotNull
                             @NotNull MapModel<G,​A,​R> mapModel)
        Creates a new instance.
        Parameters:
        mapModel - the map model to operate on
    • Method Detail

      • isBlocked

        public boolean isBlocked​(int x,
                                 int y)
        Returns whether a given location is blocked.
        Parameters:
        x - the x coordinate to check
        y - the y coordinate to check
        Returns:
        whether the square is blocked