Class GameAction

java.lang.Object
edu.tufts.hrilab.supermarket.GameAction
Direct Known Subclasses:
Active

public abstract class GameAction extends Object
  • Field Details

    • receivedResponse

      protected boolean receivedResponse
    • rawResponse

      protected String rawResponse
    • maxResponseWait

      protected int maxResponseWait
    • RESP_SLEEP

      protected static int RESP_SLEEP
  • Constructor Details

    • GameAction

      public GameAction()
  • Method Details

    • getCommand

      public abstract String getCommand()
    • getRawResponse

      public String getRawResponse()
    • getMaxResponseWait

      public int getMaxResponseWait()
    • getSuccess

      public abstract boolean getSuccess()
    • getStepCost

      public abstract double getStepCost()
    • getGameOver

      public abstract boolean getGameOver()
    • insertResponse

      public void insertResponse(String response)
    • awaitResponse

      public void awaitResponse()
    • parseResponse

      protected abstract void parseResponse()