Class BoringServerBot

java.lang.Object
za.co.wethinkcode.robots.server.serverRobot.ServerRobot
za.co.wethinkcode.robots.server.serverRobot.BoringServerBot
All Implemented Interfaces:
WorldObject, Argument, Robot

public class BoringServerBot extends ServerRobot implements WorldObject, Robot, Argument
A boring serverRobot. Does nothing special. Used the most in testing
  • Constructor Details

    • BoringServerBot

      public BoringServerBot()
      Reflection constructor for Serialization
    • BoringServerBot

      public BoringServerBot(String name)
      Standard name only constructor for a new BoringServerBot from name;
      Parameters:
      name - name of the bot
    • BoringServerBot

      public BoringServerBot(String name, WorldState worldState) throws WorldFullException
      Constructor for a Boring server robot with a name and worldState
      Parameters:
      name - name of the boring server robot
      worldState - the world state it finds itself in
      Throws:
      WorldFullException - if the world is full, the robot will not be created
    • BoringServerBot

      public BoringServerBot(BoringClientBot clientRobot)
      Cloning Constructor to make a new BoringServerBot from an existing ClientBot
      Parameters:
      clientRobot - the client robot being cloned.
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Robot
      Getter for the name of a robot
      Specified by:
      getName in interface Robot
      Returns:
      the robot's name;
    • getValue

      public Object getValue()
      Description copied from interface: Argument
      Get the value of @param
      Specified by:
      getValue in interface Argument
      Returns:
      the value of the argument