Class SOSDoor

    • Constructor Detail

      • SOSDoor

        public SOSDoor​(java.lang.String name)
    • Method Detail

      • traverse

        public boolean traverse()
        Description copied from class: PathObstacle
        Traverses the obstacle **NOTE** this is not abstract to preserve current compilation of existing overrides At some point when deprecated methods start to be removed, this *will* become abstract
        Overrides:
        traverse in class PassableObstacle
        Returns:
        true if successfully traversed
      • duplicate

        public SOSDoor duplicate​(Tile obsTile)
        Description copied from class: PathObstacle
        Creates a new PathObstacle setting the obstacles tile Note: This MUST return a new PathObstacle with the correct obstacle tile
        Overrides:
        duplicate in class PassableObstacle
        Parameters:
        obsTile - Obstacle's tile
        Returns:
        duplicated PathObstacle
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object