Interface Stateful

All Known Implementing Classes:
BackCommand, FireCommand, ForwardCommand, MineCommand, ReloadCommand, RepairCommand, TurnCommand

public interface Stateful
Commands that implement the stateful interface manipulate the state of the world and the robots in it
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    purgeCheck(World world, String robotName)
     
    default Status
    verify(World world, String robotName)
    Verify if a command is able to be executed given the current state of the robot.
    static Status
    verifyInternal(World world, com.google.gson.JsonObject obj)
     
    static Status
    verifyInternal(World world, String robotName)
    Static internal method that allows this to be called statically if needed