Package com.bdtripp.hauntedhouse.api
Class GameRequest
java.lang.Object
com.bdtripp.hauntedhouse.api.GameRequest
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
GameRequest
public GameRequest()Creates an empty GameRequest
-
-
Method Details
-
getInput
Returns the players input- Returns:
- the input from the client
-
setInput
Sets the player's input- Parameters:
input- the input from the client
-