Interface WorldObject

All Known Implementing Classes:
ClientControlledRobot, MineObstacle, NpcRobot, Obstacle, Obstacle.Brick, PitObstacle, Robot, WorldEdge

public interface WorldObject
Standard World Object Interface that allows polymorphic implementation of Objects in the World

Robot, as well as subclasses of Obstacle both implement WorldObject

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    This check returns if the WorldObject in question blocks the sightline
    default String
     
  • Method Details

    • blocksSightline

      boolean blocksSightline()
      This check returns if the WorldObject in question blocks the sightline

      Useful for the LookCommand

      Returns:
      if a world object blocks the sightline, and prevents other objects from being seen beyond it
    • getSymbol

      default String getSymbol()