Interface DangerousObject

All Known Implementing Classes:
MineObstacle, PitObstacle

public interface DangerousObject
Classes that implement the DangerousObject can cause harm to a Robot
  • Method Summary

    Modifier and Type
    Method
    Description
    harmRobot(Robot target)
    This method takes in a target, manipulates their state, then returns it
  • Method Details

    • harmRobot

      Robot harmRobot(Robot target)
      This method takes in a target, manipulates their state, then returns it
      Parameters:
      target - the Robot being harmed
      Throws:
      Exception - any exception that could be thrown