Class WorldEdge
java.lang.Object
za.co.wethinkcode.robots.server.world.WorldEdge
- All Implemented Interfaces:
WorldObject
The internals of the edge of an existing world
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis check returns if the WorldObject in question blocks the sightlinetoString()
-
Constructor Details
-
WorldEdge
-
-
Method Details
-
blocksSightline
public boolean blocksSightline()This check returns if the WorldObject in question blocks the sightlineUseful for the
LookCommand- Specified by:
blocksSightlinein interfaceWorldObject- Returns:
- if a world object blocks the sightline, and prevents other objects from being seen beyond it
-
toString
-
getSymbol
- Specified by:
getSymbolin interfaceWorldObject
-