Class WorldEdge

java.lang.Object
za.co.wethinkcode.robots.server.world.WorldEdge
All Implemented Interfaces:
WorldObject

public class WorldEdge extends Object implements WorldObject
The internals of the edge of an existing world
  • Constructor Details

    • WorldEdge

      public WorldEdge(Direction direction)
  • Method Details

    • blocksSightline

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

      Useful for the LookCommand

      Specified by:
      blocksSightline in interface WorldObject
      Returns:
      if a world object blocks the sightline, and prevents other objects from being seen beyond it
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSymbol

      public String getSymbol()
      Specified by:
      getSymbol in interface WorldObject