Class ClimbableObstacle

  • public class ClimbableObstacle
    extends PathObstacle
    Created with IntelliJ IDEA.
    : 3/31/2015 Time : 5:50 PM
    • Constructor Detail

      • ClimbableObstacle

        public ClimbableObstacle​(java.lang.String name,
                                 java.lang.String action,
                                 Tile startTile,
                                 Tile endTile,
                                 Tile obstacleTile)
        Creates a new ClimbableObstacle
        name - Name of the obstacle
        action - Action to interact with the obstacle
        startTile - The tile you'll be on/near to start the obstacle
        endTile - The tile you'll be on/near/be able to access after the obstacle
        obstacleTile - The tile of the obstacle
    • Method Detail

      • duplicate

        public ClimbableObstacle duplicate​(Tile obsTile)
        Description copied from class: PathObstacle
        Duplicates the current PathObstacle and sets the obstacle's tile to given tile
        Specified by:
        duplicate in class PathObstacle
        obsTile - Obstacle's tile
        duplicated PathObstacle
      • isCompleted

        public boolean isCompleted()
        Description copied from class: PathObstacle
        Checks if the obstacle has been completed
        Specified by:
        isCompleted in class PathObstacle