Package com.edu.xmum.CST210.Factory
Class GameControllerFactory
java.lang.Object
com.edu.xmum.CST210.Factory.AbstractFactory
com.edu.xmum.CST210.Factory.GameControllerFactory
GameControllerFactory is responsible for creating instances of IGameController.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGameController(Skin gameController, IGameService gameService) Creates and returns an instance of IGameController based on the specified skin.Methods inherited from class com.edu.xmum.CST210.Factory.AbstractFactory
getAiService, getGameModel, getGameService, getMazeModel, getMazeService, getMazeView, getPlayerModel, getPlayerService, getPlayerView, getPrepareView, getRunView, getSelectionView, getVictoryView, getWelcomeView
-
Constructor Details
-
GameControllerFactory
public GameControllerFactory()
-
-
Method Details
-
getGameController
Creates and returns an instance of IGameController based on the specified skin.- Overrides:
getGameControllerin classAbstractFactory- Parameters:
gameController- The skin enumeration that determines which controller to create.gameService- The game service to be used by the controller.- Returns:
- An instance of IGameController.
-