Package com.bdtripp.hauntedhouse.service
Class GameService
java.lang.Object
com.bdtripp.hauntedhouse.service.GameService
Provides the web-facing game service layer.
Acts as the bridge between the controller and the game engine for the web version.
- Author:
- Brian Tripp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(GameRequest request) Processes a player command and returns the resulting game output and status.Starts a new game session and returns the initial response.
-
Constructor Details
-
GameService
public GameService()Creates a new GameService instance.
-
-
Method Details
-
startGame
Starts a new game session and returns the initial response.- Returns:
- a response containing a welcome message and status of the game
-
execute
Processes a player command and returns the resulting game output and status.- Parameters:
request- the request containing the player command- Returns:
- a response containing output and status of the game
-