Class PitObstacle

java.lang.Object
za.co.wethinkcode.robots.server.world.Obstacle
za.co.wethinkcode.robots.server.world.PitObstacle
All Implemented Interfaces:
Iterable<Position>, DangerousObject, WorldObject

public class PitObstacle extends Obstacle implements DangerousObject
The Pit Obstacle represents a bottomless pit that a robot can fall into
  • Constructor Details

    • PitObstacle

      public PitObstacle(Position topLeft, Position bottomRight)
      Standard Constructor for a bottomless pit
      Parameters:
      topLeft - the top left corner of the pit
      bottomRight - the bottom left corner of the pit
  • Method Details