Class GameRequest

java.lang.Object
com.bdtripp.hauntedhouse.api.GameRequest

public class GameRequest extends Object
Represents input submitted by the client. A GameRequest carries the raw text entered by the player so the GameController can forward it to the game logic.
Author:
Brian Tripp
  • Constructor Details

    • GameRequest

      public GameRequest()
      Creates an empty GameRequest
  • Method Details

    • getInput

      public String getInput()
      Returns the players input
      Returns:
      the input from the client
    • setInput

      public void setInput(String input)
      Sets the player's input
      Parameters:
      input - the input from the client